|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
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
|
|||
|
|||
|
2 distinct in a query
i need to select distinct (code) and distinct(no) in a same query. But i do understand that i can't have two distinct in a query. what should i do?
|
|
#2
|
|||
|
|||
|
Code:
select distinct code, no from mytable; is about all you can do. This gives distinct combinations. |
|
#3
|
|||
|
|||
|
You can also use the following query:
SELECT UNIQUE code, no FROM mytable / |
![]() |
| Viewing: Dev Shed Forums > Databases > Oracle Development > 2 distinct in a query |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|