Am in the following cenario:
Table: tb_test
asset and Desc are of text type feilds.
What i want to get (syntax):
Select asset and desc from table Order By asset
AM trying this sql query:
[code]
Select asset, desc from tb_test GROUP BY asset
[code/]
Am getting desc is not part of aggregate function, which am not sure why this error showing, i beleive it shouldnt. since always the values of the desc reveal same values for the corresponding asset value.
Any body can give a hint ??
Table: tb_test
asset and Desc are of text type feilds.
Code:
---------------------- prt1 | prt2 | asset | Desc ---------------------- 1 1 11 xxx 2 1 21 yyy 1 2 12 zzz 1 1 11 xxx 2 1 21 yyy ============================
Select asset and desc from table Order By asset
AM trying this sql query:
[code]
Select asset, desc from tb_test GROUP BY asset
[code/]
Am getting desc is not part of aggregate function, which am not sure why this error showing, i beleive it shouldnt. since always the values of the desc reveal same values for the corresponding asset value.
Any body can give a hint ??
Comment