Viewing 15 posts - 1,291 through 1,305 (of 3,480 total)
Primary keys are for relating to other records in other tables. Creating an "intelligent" primary key is going to be a pain to manage. Why can you not use a...
March 22, 2018 at 6:22 pm
You could use EXISTS, LEFT JOIN... what did you try?
March 21, 2018 at 3:29 pm
Looks like this worked...use tempdb;
GO
CREATE TABLE PayDates(PayDate DATE PRIMARY KEY);
GO
INSERT INTO PayDates(PayDate) VALUES ('01/02/2018'),('02/02/2018'),('3/02/2018');
CREATE TABLE Acct(account int, amt int, rnk...
March 21, 2018 at 9:46 am
SET [field] = CAST....
March 20, 2018 at 11:19 am
'dual' is a table in Oracle. Are you using Oracle as your source or SQL Server?
March 20, 2018 at 9:21 am
Your syntax for CAST is wrong.
It's CAST(expression AS datatype)
for example...
SELECT 'The film, '+ Title + ' is ' + CAST(RunTimeMinutes AS VARCHAR(3)) +...
March 20, 2018 at 8:26 am
Joe Torre - Wednesday, March 14, 2018 12:32 PMOr Access
Eeeeeeuuuwwww... Joe said a bad word!
March 14, 2018 at 2:32 pm
March 14, 2018 at 8:29 am
WHERE [SaleDate]>DATEADD("m",-3,GETDATE()) ?
https://docs.microsoft.com/en-us/sql/t-sql/functions/dateadd-transact-sql
March 14, 2018 at 6:37 am
Like this?
SELECT YrMo
, OType
, Orders
, Total
FROM
(SELECT '13/03'AS YrMo
, 'Sales Order' AS OType
, 300 AS Orders
, 15000 AS Total
March 12, 2018 at 10:12 pm
Agreed. Doesn't sound terribly complicated given a proper description of what data you start with and the output desired...
March 12, 2018 at 4:56 pm
What do "a", "b", "c" represent? Actual values or first value, second value, third value?
Write a query to get the below result. I need output as below
March 12, 2018 at 4:16 pm
what happened when you tested the code provided by deepika0928?
What exactly is the point of your post? It's just a bunch of random-ish code... Did you try any of...
March 12, 2018 at 3:57 pm
Makes me think the OP is thinking in terms of Oracle, which can do that...
March 12, 2018 at 3:52 pm
People here are more than happy to help, but you have to do your homework first. If you don't at least try to solve the problem yourself (post what you...
March 12, 2018 at 1:56 pm
Viewing 15 posts - 1,291 through 1,305 (of 3,480 total)