GoConqr has a new look! Let us know what you think.

Flashcards

MS SQL

Magdoulin Shams El-Din Programming English 9 cards

Cards in this deck (9)

  1. 1Get a list of all databasesSELECT *
    FROM master.dbo.sysdatabases
  2. 2Get a list of all tablesSELECT
    *
    FROM
    SYSOBJECTS
    WHERE
    xtype = 'U'
  3. 3Get a list of all tables (alternative way)SELECT
    *
    FROM
    INFORMATION_SCHEMA.TABLES
  4. 4Get a list a description of a particular table all columnsEXEC sp_columns [table name]
  5. 5Show the current used database nameSELECT db_name()
  6. 6Access databaseUSE [database name]
  7. 7Get the top 100 rows of a particular tableSELECT TOP (100) [columns names list]
    FROM [table name]
  8. 8Enforce case sensitive selectSELECT [first_name]
    FROM [table name]
    WHERE BINARY [first_name] = 'First Person'
  9. 9Assign ALIAS to a column original nameSELECT [first_name] AS 'Name'
    FROM [table name]

Information

Description
Programming Flashcards on MS SQL, created by Magdoulin Shams El-Din on 21/09/2022.
Views
0
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?