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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Request Correct SQL Syntax for joining two table

Status
Not open for further replies.

smfayayz

Programmer
May 22, 2009
5
US
Hi

I am new to this forum and have question, can someone help me with right sql syntax.

I am joining two table where one table has numeric field 5 digit long and other is numeric 3 digit long.

Like: Library.table1.cyy = Library.table2.cyymm(1:3)

Visually see concept below of above code.
Like2: Library.table1.108 = Library.table2.10805(1:3)


what is a correct sql syntax.

Please help.

Thanks
Syed

Thanks
Syed.
 
There is no such thing in Manual defined as LEFT()

I will more search for Left may be on Internet..


Thanks
Syed.
 
Hi gulphdad

OK, I found it but that is for VarChar what about Integer or Numeric value.

I like to use it in join statement.

Thanks
Syed.
 
>Like: Library.table1.cyy = Library.table2.cyymm(1:3)
[tt]Library.table1.cyy = Library.table2.cyymm div 100[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top