MY SQL COMMANDS (PART-5) | ALTER | UPDATE | DELETE | DROP | CBSE CLASS 12 | COMPUTER SCIENCE

Поделиться
HTML-код
  • Опубликовано: 1 ноя 2024

Комментарии • 168

  • @silent1975
    @silent1975 3 года назад +31

    Mam is doing the work which our need of hour,python content is not found in any systematic manner like this channel anywhere google or RUclips and she is providing us quality content for us free of cost 🙏 i request everybody to make her channel as popular as our PHYSICS WALLAH SIR🥰 revolution begins here for computer subject. Do like share and subscribe ❤

  • @Teacher-sb2by
    @Teacher-sb2by 2 года назад +5

    Best computer teacher 👍👍

  • @Karthika420
    @Karthika420 9 месяцев назад +6

    Thank you maam for wonderful explanation ❤❤❤

  • @rishabhsharma7701
    @rishabhsharma7701 4 года назад +7

    terrific video but mam pls provide ppt in the discription box of every video this would me very helpful

  • @mrwordpress6676
    @mrwordpress6676 3 года назад +7

    Thanks for this quality content

  • @Sourab_kumar_
    @Sourab_kumar_ 11 месяцев назад +4

    Mam your teaching quality are next level and you are teaching in govt. School

  • @ruphusjohn8384
    @ruphusjohn8384 3 года назад +3

    Too clear ma'am. Thanks ma'am

  • @neerajmenon8107
    @neerajmenon8107 3 года назад +2

    everything is clear mam. Thank you so much for your efforts.

  • @vaibhavigupta31
    @vaibhavigupta31 2 года назад +3

    You are the best teacher❤️..... cleared all my doubts✌️.....all the concepts of this video are crystal clear to me🥳.....your great explanation forced me to do this comment ❤️✨😁🥳😍

  • @smunofficial1963
    @smunofficial1963 2 года назад +2

    Thankyouu so much mam , today after 40 min , there is my board practial , thankyou for helping!!

  • @vibilansivakumar
    @vibilansivakumar 4 года назад +2

    Mam I'm very thankful to you

  • @studywithdivprit2744
    @studywithdivprit2744 3 года назад +12

    Mam .....just bcz of u i got 65 out of 70 in preboard

  • @utpalm9453
    @utpalm9453 3 года назад +4

    Ma'am.. what if we add constraint NOT NULL while adding a new column by alter table?

    • @Sourab_kumar_
      @Sourab_kumar_ 11 месяцев назад

      No bro you can't enter this

  • @NeerajKumar-qd8fy
    @NeerajKumar-qd8fy 4 года назад +3

    Mam you have cleared my all the concepts!!best video on SQL.... Thanks mam !!! Mam please send me ppt of complete SQL.. please mam!!!!🙏

  • @SurajSingh-wt6ol
    @SurajSingh-wt6ol Год назад +2

    Thank you mam for helping this concept

  • @Teenu
    @Teenu 4 года назад

    mam thanks i watched complete playlist of mysql and finding cs quite easy because of you. very very thanks mam......

  • @SA-so2zc
    @SA-so2zc 2 года назад +1

    Mam why is warning shown after execution ? (At 13:40)
    Does it have any significance ?

  • @innovative2966
    @innovative2966 4 года назад +1

    Nice video thanks Ma'am

  • @naveenmittal5115
    @naveenmittal5115 Год назад +1

    Thanks a lot mam for this great grand explanation 🥰

  • @RahulSaini-pp5kz
    @RahulSaini-pp5kz 3 года назад +2

    no doubts🤩🤩🤩🤩

  • @utpalm9453
    @utpalm9453 4 года назад

    Can we add primary key constraint while adding a new column by alter table?
    Ma'am.. pls ans this

  • @Surajfutureca8083
    @Surajfutureca8083 3 года назад +1

    Mam you are really good😎 teacher

  • @xperthighlight
    @xperthighlight Год назад +1

    Mam apki wajah se mere ache marks aaye h pure pre boards me bus ab me chahta hu ki kal mere boards me 90 above ajaye

  • @utpalm9453
    @utpalm9453 4 года назад +1

    Can we change the datatype or datatype size through CHANGE command of alter table???

    • @SwatiChawlaofficial
      @SwatiChawlaofficial  4 года назад

      yes..
      For example, the size of column name is 10 earlier and u want to change it to 15 now..
      The query will be:
      mysql> ALTER TABLE students MODIFY name VARCHAR(30);

  • @umamaheswarisrirengan8579
    @umamaheswarisrirengan8579 2 года назад +4

    Thank you mam

  • @dhruvsaini500
    @dhruvsaini500 2 года назад +2

    ALTER TABLE Item
    ADD (Discount INT); Mam this was the ans of one of the question asked in sample paper. Here in the ans key there is the use of brackets even when we are adding a single column but mam the command which you have told there is no brackets use so mam if we write this command without brackets then it will be wrong??

    • @SwatiChawlaofficial
      @SwatiChawlaofficial  2 года назад +1

      If u r adding multiple columns in a table using Alter command, then brackets are mandatory...
      If u r adding single column in a table, then brackets are optional...
      Plz try this urself practically as well..

  • @indiranamasivayam9174
    @indiranamasivayam9174 2 года назад

    Càn only data type be changed using modify in alter command mam?
    If so, it is possible only to change int to float and vice versa and char to varchar and vice.
    Is it not possible to change int or float to char or varchar and vice versa.

  • @Sourab_kumar_
    @Sourab_kumar_ 11 месяцев назад +7

    Legend seeing this before a month of final exam😂

    • @SwatiChawlaofficial
      @SwatiChawlaofficial  11 месяцев назад +1

      Best wishes for your exam

    • @radioactive7583
      @radioactive7583 7 месяцев назад

      A legend pro max watching the day before board exam, even after having 24 days to study.

    • @hakeshcoc2089
      @hakeshcoc2089 7 месяцев назад

      @@radioactive7583 10hrs before exam

    • @Aliumplayz
      @Aliumplayz 2 месяца назад

      ​@@hakeshcoc208915 mins before exam in exam hall

    • @avirajmishra8673
      @avirajmishra8673 Месяц назад

      Watching in Exam hall💀

  • @aarthipekamwar3473
    @aarthipekamwar3473 2 года назад +2

    All sql comands will be in capital letters
    But in some programs they are in small letters and some are capital

    • @parthsingh1412
      @parthsingh1412 2 года назад +2

      SQL IS CASE INSENSITIVE LANGUAGE YOU CAN USE BOTH SMALL OR CAPITAL

    • @parthsingh1412
      @parthsingh1412 2 года назад

      @Aarthi Pekamwar

    • @puspalatakar7006
      @puspalatakar7006 2 года назад

      @@parthsingh1412 not case sensitive

    • @puspalatakar7006
      @puspalatakar7006 2 года назад

      @@parthsingh1412 kyunki agar case sensitive hoga to wo depend karega ki tum command ko kese likh rahe ho

    • @chesstricksandtraps1
      @chesstricksandtraps1 Год назад

      @@puspalatakar7006 Usne case INsensitive likha hai

  • @Drishti_Sadh
    @Drishti_Sadh 7 месяцев назад +2

    Are these lec are sufficient for tomorrow's exam 😶

    • @Proxz
      @Proxz 7 месяцев назад +2

      do the sample papers

    • @asmiivarshney3380
      @asmiivarshney3380 7 месяцев назад

      Cbse boards?

    • @Proxz
      @Proxz 7 месяцев назад +1

      @@asmiivarshney3380 ye

    • @Drishti_Sadh
      @Drishti_Sadh 7 месяцев назад +1

      @@asmiivarshney3380 yepp

  • @srutirajprusty6404
    @srutirajprusty6404 Год назад +2

    Mam update ke Alag type ke bhi Qns hai...jese update marks by increasing it by 5%...iss type ke qn chahiye

    • @CosmoScion
      @CosmoScion Год назад

      Homie from KV Berhampur 👊🤝

    • @srutirajprusty6404
      @srutirajprusty6404 Год назад

      @@CosmoScion hiii dude...sry topper🤩🤩

    • @CosmoScion
      @CosmoScion Год назад +1

      @@srutirajprusty6404 UPDATE students
      SET marks = marks * 1.05;

    • @CosmoScion
      @CosmoScion Год назад

      @@srutirajprusty6404 😂

    • @its__Hacker
      @its__Hacker Год назад

      UPDATE
      SET marks = marks + (marks*0.05);

  • @silent1975
    @silent1975 3 года назад +1

    Thank you so much mam

  • @anupmasrivastava4880
    @anupmasrivastava4880 Год назад

    Ma'am how can we enter a column in-between 2 existing columns? Pls tell

  • @TunerXMusic4u
    @TunerXMusic4u 2 года назад +1

    Mam is there any android app good for SQL in your knowledge?

  • @studywithdivprit2744
    @studywithdivprit2744 3 года назад +1

    !!!!Mam I NEED A HELP !!!!!..board practical viva ke liye...apna best chapter theory ... MySQL ...aur data handling me se kya rakhna suitable.. . Hoga ....bcz in school , which examinar will came.... Unka database portion bhut strong h.....

    • @SwatiChawlaofficial
      @SwatiChawlaofficial  3 года назад +1

      in which u r having command.... if u r comfortable with these two..go for it + connectivity also, if possible

    • @studywithdivprit2744
      @studywithdivprit2744 3 года назад

      Okk...thanks mam....

  • @GSMHere
    @GSMHere 2 года назад +1

    Mam is there any way to add any column at any position in the table instead of adding it at the end of the table...?

    • @rishabharyan613
      @rishabharyan613 2 года назад +2

      In mysql column position doesn't matter it can be changed when u will add column and again desc the table the position of column will be changed

  • @utpalm9453
    @utpalm9453 4 года назад

    So, we can apply insert into and desc command even afte deleting it.. but not in the case of after dropping it .. am i correct ma'am?

  • @saumyasingh...8441
    @saumyasingh...8441 3 года назад +2

    You are best mam❤️

  • @KesavanVenkateswaran
    @KesavanVenkateswaran 2 месяца назад

    Mam in alter command for single column addition its not working for int datatype if bracket is not enclosed

  • @Katojameskats
    @Katojameskats 6 месяцев назад +2

    ❤❤❤

  • @kri_nimita
    @kri_nimita 3 года назад +1

    Can we add a new column after any desired column..for example in the table emp if i want to add the gender column just after the name column...can i do that?

    • @RahulSaini-pp5kz
      @RahulSaini-pp5kz 3 года назад

      you can add from alter but not sure if u can add at desired location
      but if you want to😂😂
      delete the previous coulums add your desired coulumn and then add those deleted coulumns again😂😂

    • @SwatiChawlaofficial
      @SwatiChawlaofficial  3 года назад +2

      Yes we can do this...by the following syntax..
      alter table emp add gender varchar(2) after name;

    • @kri_nimita
      @kri_nimita 3 года назад +2

      @@SwatiChawlaofficial ok ma'am 😊

  • @viswaraje8441
    @viswaraje8441 4 года назад

    In ALTER command both keywords change and modify seems same. In what situation we have to use change

    • @SwatiChawlaofficial
      @SwatiChawlaofficial  4 года назад

      MODIFY clause is used to change data type, size, default value, order of column, etc..
      CHANGE clause of ALTER command is used to change the name of the column(s).

  • @indiranamasivayam9174
    @indiranamasivayam9174 2 года назад

    Mam , suppose we have created a table
    And we have altered it by adding few columns
    Now if we r asked to insert few records should we include the added columns or not

    • @chesstricksandtraps1
      @chesstricksandtraps1 Год назад

      You can but if you don't then it will leave it null so no error will occur.

  • @utpalm9453
    @utpalm9453 4 года назад +1

    Can two columns have same name?

  • @shabeerkhan379
    @shabeerkhan379 2 года назад +1

    Mam can we copy entire data values from one table to another table?

    • @SwatiChawlaofficial
      @SwatiChawlaofficial  2 года назад

      Yes...
      The INSERT INTO SELECT statement copies data from one table and inserts it into another table.
      The INSERT INTO SELECT statement requires that the data types in source and target tables match.
      INSERT INTO table2
      SELECT * FROM table1
      WHERE condition;

    • @sagarmishra7219
      @sagarmishra7219 2 года назад

      @@SwatiChawlaofficial ma'am not getting ispr short video bana dijiyega 🙏🙏🙏

    • @SwatiChawlaofficial
      @SwatiChawlaofficial  2 года назад

      Okk...

    • @sagarmishra7219
      @sagarmishra7219 2 года назад

      @@SwatiChawlaofficial 🙏

  • @virushkalover4884
    @virushkalover4884 3 года назад

    U are fabulous

  • @indiranamasivayam9174
    @indiranamasivayam9174 2 года назад +1

    can only one column be modified at a time mam

  • @muthusaranyas4029
    @muthusaranyas4029 4 года назад

    how to add data for newly inserted coloumns...

    • @SwatiChawlaofficial
      @SwatiChawlaofficial  4 года назад

      Using update commamd

    • @muthusaranyas4029
      @muthusaranyas4029 4 года назад

      @@SwatiChawlaofficial yes.....thank you but we can't add data for all new columns at a time....

    • @SwatiChawlaofficial
      @SwatiChawlaofficial  4 года назад +1

      Suppose you added two columsn in ur mysql table as:
      alter table student add (Stream varchar(10), fees int);
      To add values simultaneously for both the columns,
      update student set Stream='Non Med' , Fees='12000' where id=101;
      You can add values for all the rows also in a particular column, by omitting the where clause.
      Update Student set Gender='M' ;
      This will add Gender M in all the rows fro that particular column..

  • @ManojKumar-qz5yf
    @ManojKumar-qz5yf Год назад

    Ma'am when i am entering 2005 as year in dob it showing error and asks to enter 1990. What should i do?

    • @SwatiChawlaofficial
      @SwatiChawlaofficial  Год назад +1

      Enter in the format of yy-mm-dd

    • @chesstricksandtraps1
      @chesstricksandtraps1 Год назад

      Actually when you enter like 2005-01-01 then instead of reading it as 2005 hyphen 01 hyphen 01, it assumes it to be 2005 minus 01 minus 01.
      Try it without the hyphen like 20050101.
      Reply if it works :)

  • @indiranamasivayam9174
    @indiranamasivayam9174 2 года назад

    Mam
    is it compulsory to give commit command after alter or update command

  • @manavnagrani8338
    @manavnagrani8338 3 года назад

    Mam if you could provide ppt it would be really helpful at the time of revision
    thank you 🙏

    • @SwatiChawlaofficial
      @SwatiChawlaofficial  3 года назад

      Sure..You can enjoy special perks by joining the membership.
      Have a look at this.
      ruclips.net/channel/UC2vH9rqGh-fJELF8acGfBdwjoin

  • @narayansinghtomar3250
    @narayansinghtomar3250 3 года назад

    Mam can u plz provide me a link for running SQL query in android phone

  • @artwithkajal1739
    @artwithkajal1739 Год назад

    Mam when we use drop command then is it delete also database?

    • @SwatiChawlaofficial
      @SwatiChawlaofficial  Год назад +2

      To delete table:
      Drop table tablename;
      To delete database:
      Drop databasename;

  • @rajeshwarikurmi2039
    @rajeshwarikurmi2039 2 года назад +1

    Mam keyword ko capital main likhna zaroori hai kya

  • @krishnanikhil2507
    @krishnanikhil2507 3 года назад +1

    THank you mam loved it

  • @aishanasim1900
    @aishanasim1900 3 года назад

    Mam ek table create kiye jisme rollno,name and marks h
    Mam we want rollno as primary key then .....mam plz make it by the use of Alter command 🙏

    • @SwatiChawlaofficial
      @SwatiChawlaofficial  3 года назад

      create table student
      (rollno int,
      name varchar(10),
      mark float
      );
      alter table student add constraint PRIMARY KEY(rollno);

    • @aishanasim1900
      @aishanasim1900 3 года назад

      Thank you so much mam 🙏🤩😊😀

  • @RohitKumarMishra-f4c
    @RohitKumarMishra-f4c 11 месяцев назад +1

    Mam alter ka use krke yek new column add to ho jayega but usme null values hongi
    Agr null ki jagah usme kuchh aur enter krna ho to kese krenge

    • @SwatiChawlaofficial
      @SwatiChawlaofficial  11 месяцев назад

      By using update command

    • @RohitKumarMishra-f4c
      @RohitKumarMishra-f4c 11 месяцев назад

      @@SwatiChawlaofficial yes mam 😅 mam preboard aa gye h one shot series chla do

    • @tanishksharma8430
      @tanishksharma8430 7 месяцев назад +1

      ALTER TABLE TABLE_NAME ADD NEW_COLUMN DATATYPE NOT NULL DEFAULT='HELLO'

  • @samdevan8077
    @samdevan8077 3 года назад +1

    Can u take live sessions

    • @SwatiChawlaofficial
      @SwatiChawlaofficial  3 года назад

      Yes... Already started...
      Even today also...6:15 p.m. for details...plz Check community tab..
      Plz subscribe the channel and press the bell icon so that u don't miss any notification...

  • @whatsappstatus6113
    @whatsappstatus6113 Год назад +1

    Mam pls provide ppt also

    • @SwatiChawlaofficial
      @SwatiChawlaofficial  Год назад +1

      Sure..You can enjoy special perks by joining the membership.
      Have a look at this.
      ruclips.net/channel/UC2vH9rqGh-fJELF8acGfBdwjoin

    • @Sourab_kumar_
      @Sourab_kumar_ 11 месяцев назад

      😂😂😂

  • @poonammaurya7526
    @poonammaurya7526 2 года назад +2

    Plssssssssssss also provide ppt na maam.

    • @SwatiChawlaofficial
      @SwatiChawlaofficial  2 года назад +1

      Sure..You can enjoy special perks by joining the membership.
      Have a look at this.
      ruclips.net/channel/UC2vH9rqGh-fJELF8acGfBdwjoin

    • @GSMHere
      @GSMHere 2 года назад +7

      Bro you have the feature of screenshot...Just simply use it and save the photos in a particular folder...membership...huh...

    • @mayank5549
      @mayank5549 2 года назад

      @@GSMHere lol

  • @mrabhishek3283
    @mrabhishek3283 2 года назад

    24:53 yeh kya tha ?

  • @zayafila4528
    @zayafila4528 3 года назад

    I like to study computer science due to mam

  • @utpalm9453
    @utpalm9453 4 года назад

    Ma'am.. what if we add constraint NOT NULL while adding a new column by alter table?

  • @Aves7
    @Aves7 3 года назад +2

    Thanks mam