View Single Post
  #1  
Old 07-16-2010, 09:22 PM
Irreverent
The Solo Server
 
Join Date: May 2007
Posts: 416
Default SQL Help: Linking NPC ID to zoneid

ok, trying to create a SQL statement that will link a NPC to their zone #(because i really want the expansion column in the zone table)

Maybe i'm too excel but tried

Select a.name, b.expansion from npc_types a, zone b where b.zoneidnumber = left(a.id,length(a.id) - 3)) and length(a.id) > 3
__________________
OP of Irreverent Server (The Solo Server)
Our Forums
Reply With Quote