Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieving select query 1

Status
Not open for further replies.

Weese

Programmer
Apr 3, 2003
17
Hi,

I need to retrieve from a select query from a string of values that's delimited using a delimiter...

I am having a data like this in myTable

maxYr minYr SysMakCd SysModCd SysModDes
1999 2001 Turky 0912 TurkyModDes
2002 2003 Turky 0912 TurkyLaterDes
1999 2002 Sando 0712 sandoModdes

In a stored Procedure I am passing parameter like

@Year = '|2000|2002|'
@SysMk = '|Turky|Turky|'
@SysMd = '|0912|0912|'

Using the above parameter, I have to write a query to fetch data like this
myCd myDes
2000 + Turky + 0912, TurkyModDes
2003 + Turky + 0912, TurkyLaterDes


Any idea is highly appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top