Simone
02/14/2022, 4:51 PMMyka Forrest
02/14/2022, 4:53 PMMyka Forrest
02/14/2022, 4:53 PMTim
02/14/2022, 4:55 PMaliaspooryorik
Simone
02/14/2022, 5:04 PMselect tblItems.ItemsID as Items_ID,
	tblItems.title AS ItemsTitle,
  tblItems.ItemsManager_ContactID,
  CONVERT(tblItems.EndDate_Scheduled ,date) as EndDate_Scheduled,
  tblview.ViewName as viewName 
  from tblItems 
  LEFT OUTER JOIN tblviews ON (tblItems.Items_viewsID = tblviews.viewsID) 
  LEFT OUTER JOIN tblcontact ON (tblItems.ItemsManager_ContactID = tblcontact.ContactID) 
  WHERE (tblItems.ItemsStatusID = 7) ORDER BY tblItems.EndDate_Scheduled ASC, 
  Items_viewsID ASC limit 1aliaspooryorik
Simone
02/14/2022, 5:14 PMSimone
02/14/2022, 5:15 PMMyka Forrest
02/14/2022, 5:15 PMSimone
02/14/2022, 5:16 PMSimone
02/14/2022, 5:16 PMSimone
02/14/2022, 5:16 PMSimone
02/14/2022, 5:17 PMaliaspooryorik
Myka Forrest
02/14/2022, 5:18 PMaliaspooryorik
Myka Forrest
02/14/2022, 5:20 PMreplace()Simone
02/14/2022, 5:22 PMSimone
02/14/2022, 5:22 PMSimone
02/14/2022, 5:23 PMMyka Forrest
02/14/2022, 5:25 PMtblItems.ItemsID as Items_ID,
	tblItems.title AS ItemsTitle,
  tblItems.ItemsManager_ContactID,
  CONVERT(tblItems.EndDate_Scheduled ,date) as EndDate_Scheduled,
  tblview.ViewName as viewNamerodyon
02/14/2022, 5:25 PMaliaspooryorik
Adam Cameron
i am using a Format function from mysql to format a numberWhy are you formatting numbers in the storage tier? This is - almost always - a job for the presentation tier. But more importantly...
For whatever reason you trying to parse SQL query [...]Yeah to me I'm asking myself "WTH are you actually trying to do here?" Because what yer doing looks to be fundamentally the wrong approach to [anything]. So... back up quite a long way. What are you trying to achieve that involves you trying to parse and SQL SELECT statement for column names?!?
Simone
02/14/2022, 5:47 PMAdam Cameron
aliaspooryorik
select
  'MYTABLE' as 'the_source_table',
  tblItems.ItemsID as Items_ID,
  tblItems.title AS ItemsTitle,
  ...David Buck
02/14/2022, 8:20 PMaliaspooryorik
David Buck
02/14/2022, 8:33 PM