Collections:
Testing Table for SELECT Statements in SQL Server
How To Create a Testing Table with Test Data to try with SELECT statements in SQL Server?
✍: FYIcenter.com
If you want to follow the tutorial exercises presented in this collection, you need to create a testing table and insert some test data, as shown in the following sample script:
CREATE TABLE fyi_links (id INTEGER PRIMARY KEY,
url VARCHAR(80) NOT NULL,
notes VARCHAR(1024),
counts INT,
created DATETIME NOT NULL DEFAULT(getdate()))
GO
INSERT INTO fyi_links VALUES (101,
'dev.fyicenter.com',
NULL,
0,
'2006-04-30');
GO
INSERT INTO fyi_links VALUES (102,
'dba.fyicenter.com',
NULL,
0,
DEFAULT);
GO
INSERT INTO fyi_links (url, id)
VALUES ('sqa.fyicenter.com', 103);
GO
You should keep this table and its data to practice other tutorial exercises presented in this collection.
⇒ Selecting All Columns of All Rows from a Table in SQL Server
⇐ What Is a SELECT Query Statement in SQL Server
⇑ Using SELECT Statements and GROUP BY Clauses in SQL Server
2016-10-26, 2280🔥, 0💬
Popular Posts:
How To Use SQL*Plus Built-in Timers in Oracle? If you don't have a stopwatch/timer and want to measu...
How to execute statements under given conditions in SQL Server Transact-SQL? How to use IF ... ELSE ...
How To Round a Numeric Value To a Specific Precision in SQL Server Transact-SQL? Sometimes you need ...
How To Verify Your PHP Installation in MySQL? PHP provides two execution interfaces: Command Line In...
What Privilege Is Needed for a User to Delete Rows from Tables in Another Schema in Oracle? For a us...