|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Hello,
Is is possible to have a " AS mynewname" in a sub-select ? For me that's work not! SELECT count(ANZSUCHEN.ID) AS totalsuchen_perkanton, ANZSUCHEN.KANTON, (SELECT count(*) AS total FROM ANZSUCHEN) FROM ANZSUCHEN GROUP BY ANZSUCHEN.KANTON ORDER BY ANZSUCHEN.totalsuchen_perkanton DESC |
|
#2
|
|||
|
|||
|
Code:
SELECT count(ANZSUCHEN.ID) AS totalsuchen_perkanton, ANZSUCHEN.KANTON, (SELECT count(*) FROM ANZSUCHEN) as total FROM ANZSUCHEN GROUP BY ANZSUCHEN.KANTON ORDER BY ANZSUCHEN.totalsuchen_perkanton DESC |
|
#3
|
|||
|
|||
Thx a lot! Regards, Dominique |
![]() |
| Viewing: Dev Shed Forums > Databases > MS SQL Development > As in sub-select? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|