In this post, I am sharing the SQL Script for “ Create Country Table & Populate All Country Names ” using SQL Server and this script containing “ Id ”, “ county code ”, “ county name ” and “ nationalities ”. First, we will need to create a table “ Counties ” and after will need to create “ INSERT ” countries query i.e. 1. CREATE TABLE 2. INSERT COUNTRY ROWS Stayed Informed - SQL Server Tutorials | SQL Server Interview Questions Examples as, --CREATE TABLE COUNTRIES GO CREATE TABLE [dbo].[Countries]( [Id] [ int ] IDENTITY ( 1 , 1 ) NOT NULL , [CountryID] [ char ]( 10 ) NOT NULL , [CountryName] [nvarchar]( 100 ) NULL , [Nationality] [nvarchar]( 100 ) NULL , CONSTRAINT [PK_country] PRIMARY KEY CLUSTERED ( [Id] ASC ) WITH (PAD_INDEX = OFF , STATISTICS_NORECOMPUTE = OFF , IGNORE_DUP_KEY = OFF , ALLOW_ROW_LOCKS = ON , ALLOW_PAGE_LOCKS = ON ) ON [ PRIMARY ] ) ON [ PRIMARY ] GO...
Angular, React, JavaScript, Java, PHP, SQL, C#, Vue, NodeJs, TypeScript and Interview Questions Answers