|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
sql distinct
hi there
i have a query: Select HotelID, RoomNo, Description from Hotel Can I have a similar query where only the HotelID is distinct? Thanks |
|
#2
|
||||
|
||||
|
Code:
SELECT DISTINCT HotelID, RoomNo, Description FROM Hotel GROUP BY HotelID, RoomNo, Description Or Code:
SELECT DISTINCT HotelID FROM Hotel |
![]() |
| Viewing: ASP Free Forums > Database > SQL Development > sql distinct |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|