GoGreen PC Tune-Up™
Learn More

Insta-Install™
this is how ssl encrypt our websites
MTNCOMP | List View | Table View | myBlog (1789 Entries)
myBlog Home

Blog


Refresher in SQL basics in under 30 minutes

SQL

by Mountain Computers Inc, Publication Date: Saturday, December 9, 2023

View Count: 592, Keywords: SQL, Basics, 30 minutes, Hashtags: #SQL #Basics #30minutes



It's been about 30 days since I did some quick and easy SQL, like playing the piano...
 
here is my quick example of practice...
 
use test1
sp_tables

create table testc (
row_id    int identity,
num1    int null,
num2    float null
)

-- alter table testc add num3 money null
-- drop table testc

declare @i int
select @i = 1

while @i < 100
begin
insert into testc (num1, num2, num3) values (rand() * 10000, rand(), rand() * 100000)
select @i = @i + 1
end

-- create index myindex_testc on testc (row_id)
-- select count(*) from testc
-- delete from testc
-- select * from testc
-- select * from testc order by row_id desc

That's it! the results look like this.
select * from testc order by row_id desc 
Now go outside and enjoy conversing with your neighbors! ha!
 
 
 
 
took me 30 minutes refresher to do some basics... did you enjoy this? I did.
 
more to come...

if you found this article helpful, consider contributing $10, 20 an Andrew Jackson or so..to the author. more authors coming soon
FYI we use paypal or patreon, patreon has 3x the transaction fees, so we don't, not yet.

© 2025 myBlog™ v1.1 All rights reserved. We count views as reads, so let's not over think it.