|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
SQL Statements
I am trying to query a data base I can pull info out by salesman # but I want to put a date range in and I am not able to figure out what the code is. This what I have now, any help would be great!
SELECT * FROM wbw_head WHERE (SLM_NUMBER = ::SLM_NUMBER: |
|
#2
|
|||
|
|||
|
RE: SQL Statements
Not knowing exactly the format of your dates, (generically) you could try this:
SELECT * FROM wbw_head WHERE slm_number='SLM_NUMBER_VAR' and date>='LOWER_DATE_VAR' and date<='HIGHER_DATE_VAR' ORDER BY ship_date ASC Hope that helps. |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Database Help > SQL Statements |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|
|