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, 3049🔥, 0💬
Popular Posts:
Where to find answers to frequently asked questions in general areas of Microsoft SQL Server Transac...
Where Is the Export Dump File Located in Oracle? If you are not specifying the dump directory and fi...
What are DDL (Data Definition Language) statements for tables in SQL Server? DDL (Data Definition La...
What Happens If the UPDATE Subquery Returns Multiple Rows in SQL Server? If a subquery is used in a ...
How To Start Instance with a Minimal Initialization Parameter File in Oracle? The sample initializat...