sql add statement access

Solutions on MaxInterview for sql add statement access by the best coders in the world

showing results for - "sql add statement access"
Guillermo
31 Feb 2016
1INSERT INTO tblProducts (ProductName,
2   CategoryDescription, UnitPrice)
3VALUES ('Support Renewal', 'Multi-User', 99);
4
Fabian
18 Jan 2019
1PARAMETERS LastDateToKeep DateTime;
2INSERT INTO tblContactEventsHistory
3  (ContactID, ContactDateTime, ContactEventType, ContactNotes )
4 SELECT tblContactEvents.ContactID, tblContactEvents.ContactDateTime,
5   tlkpContactEventTypes.ContactEventTypeDescription,
6   tblContactEvents.ContactNotes
7  FROM tlkpContactEventTypes
8  INNER JOIN (tblContactEvents
9   LEFT JOIN tblContactEventsHistory
10   ON (tblContactEvents.ContactID = tblContactEventsHistory.ContactID)
11    AND (tblContactEvents.ContactDateTime =
12     tblContactEventsHistory.ContactDateTime))
13  ON tlkpContactEventTypes.ContactEventTypeID =
14   tblContactEvents.ContactEventTypeID
15 WHERE (tblContactEvents.ContactDateTime<[LastDateToKeep])
16  AND (tblContactEventsHistory.ContactID Is Null);
17