Skip to main content

Posts

Showing posts from October, 2019

SQL> Data Definition Language

SQL >  Data Definition Language - DDL Data Definition Language (DDL) is a part of SQL that is used to create, modify, and delete database objects such as table, view, and index. Below are the most common DDL commands: डेटा डेफिनिशन लैंग्वेज (डीडीएल) एसक्यूएल का एक हिस्सा है जो डेटाबेस ऑब्जेक्ट्स जैसे टेबल, व्यू, और इंडेक्स को बनाने, संशोधित करने और हटाने के लिए उपयोग किया जाता है। नीचे सबसे सामान्य DDL कमांड दिए गए हैं: SQL CREATE TABLE SQL Data Types SQL View SQL CREATE VIEW SQL Index SQL CREATE INDEX SQL DROP TABLE SQL TRUNCATE TABLE SQL USE SQL CREATE DATABASE SQL DROP DATABASE SQL > Data Definition Language - DDL >  Create Table Statement In a relational database, data is stored in tables. Given that there is no way for the database vendor to know ahead of time what your data storage needs are, you will for sure need to create tables that fit your needs in the database. Therefore, the  CREATE TABLE  statement is one of the most ...

SQL > SQL Commands > Distinct

SQL > SQL Commands  >  Distinct In SQL, the  DISTINCT  keyword is used in the SELECT statement to retrieve unique values from a database table. Any value that has a duplicate will only show up once. SQL में, डेटाबेस तालिका से अद्वितीय मानों को पुनः प्राप्त करने के लिए चयन कथन में DISTINCT कीवर्ड का उपयोग किया जाता है। कोई भी मूल्य जिसमें एक डुप्लिकेट है वह केवल एक बार दिखाएगा। Syntax SELECT DISTINCT "column_name" FROM "table_name"; "table_name" is the name of the table where data is stored, and "column_name" is the name of the column containing the data to be retrieved. "table_name" उस तालिका का नाम है जहां डेटा संग्रहीत किया जाता है, और "column_name" उस स्तंभ का नाम है जिसमें डेटा पुनर्प्राप्त किया जाना है। Examples The examples will use the following table: Table  Store_Information Store_Name Sales Txn_Date Los Angeles 1500 Jan-05-1999 San Diego 250 Jan-07-1999 Los Angeles 300 Jan-08-1999...

SQL > SQL Commands > Select

SQL > SQL Commands  >  Select The  SELECT  statement in SQL is used to retrieve data from a relational database. SQL में SELECT स्टेटमेंट का उपयोग रिलेशनल डेटाबेस से डेटा को पुनः प्राप्त करने के लिए किया जाता है। Syntax Number of Columns SQL Syntax 1 SELECT "column_name" FROM "table_name"; More Than 1 SELECT "column_name1"[, "column_name2"] FROM "table_name"; All SELECT * FROM "table_name"; "table_name" is the name of the table where data is stored, and "column_name" is the name of the column containing the data to be retrieved. "table_name" उस तालिका का नाम है जहां डेटा संग्रहीत किया जाता है, और "column_name" उस स्तंभ का नाम है जिसमें डेटा पुनर्प्राप्त किया जाना है। To select more than one column, add a comma to the name of the previous column, and then add the column name. If you are selecting three columns, the syntax will be, एक से अधिक कॉलम का चयन...