|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Why won't this Alias work???? Please help.
This is in MSQuery. I feel like a noob, but these aliases are giving me syntax errors. Any suggestions please?
Thank you, Shane SELECT strcustr.cust_code, strcustr.bus_name, strcustr.state, strcustr.sls_psn_code, Sum(zyosaled.amount) AS '$', SUM(zyosaled.tot_sf/1000) AS 'MSF', SUM(zyosaled.tot_wt/2000) AS 'Tons', SUM(zyosaled.amount-zyosaled.tot_dir_cst) AS 'C$' FROM {oj informix.strcustr strcustr LEFT OUTER JOIN root.zyosaled zyosaled ON strcustr.cust_code = zyosaled.cust_code} WHERE (zyosaled.inv_date Between {d '2004-05-01'} And {d '2004-05-31'}) AND (zyosaled.sales_type Like 'G') GROUP BY strcustr.cust_code, strcustr.bus_name, strcustr.state, strcustr.sls_psn_code |
|
#2
|
|||
|
|||
|
Try giving alias without the quotes.
__________________
Regards, Brightlight
|
|
#3
|
|||
|
|||
|
What I've tried
I've tried " ", ' ', { }, [ ], and nothing around my desired aliases. Always gives me syntax error.
:-( Any other suggestions? |
![]() |
| Viewing: Dev Shed Forums > Databases > MS SQL Development > Why won't this Alias work???? Please help. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|