iCalendar “Field” list (for database schema based on iCalendar standard)

I’ve done this (for VEvents only, not supporting TODO items or Journal entires or anything like that). My implementation looks like this (after removing columns that are not specific to the question): — One table for each event. An event may have multiple rRules. Create Table [vEvent] (vEventID Integer Identity(1, 1) Not Null Constraint [vEvent.pk] … Read more

Update Statement using Join and Group By

You can try putting the group by inside of a subquery, then join by the “JobOrderID”, like this: UPDATE J SET J.StatusID = A.statusId FROM MKT_JobOrder J INNER JOIN ( SELECT J.JobOrderID , CASE WHEN SUM(DUV.VendorDUQuantity) = SUM(RD.InvoiceQuantity) THEN 1 ELSE J.StatusID END AS statusId FROM PLN_DU_Vendor DUV INNER JOIN ENG_Release R ON R.ReleaseID = … Read more

Convert Comma Separated column value to rows

try this SELECT A.[id], Split.a.value(‘.’, ‘VARCHAR(100)’) AS String FROM (SELECT [id], CAST (‘<M>’ + REPLACE([string], ‘,’, ‘</M><M>’) + ‘</M>’ AS XML) AS String FROM TableA) AS A CROSS APPLY String.nodes (‘/M’) AS Split(a); refer here Converting a single comma separated row into multiple rows

Can a table field contain a hyphen?

Yes, you can use punctuation, white space, international characters, and SQL reserved words if you use delimited identifiers: SELECT * FROM `my-table`; In MySQL, use the back-ticks. In standard SQL, use double-quotes. Or if you use MySQL you can set the ANSI_QUOTES SQL mode: SET SQL_MODE = ANSI_QUOTES; SELECT * FROM “my-table”;

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)