Friday, August 1, 2025

MS-SQL Server - कोपले & Computed Column

कोपले


Well कोपले in regards to SQL Server is nothing but new and soft leaf which is new small features that are getting enhanced day by day as per business requirements.

Some of these are


- Column Store Indexes

- Online nonclustered columnstore index rebuild 

- Data Compression


Additionally,

Example :- Delhi se Maan lo poore India mein Kesar jata hai.

Assume we have a condition where we have to create a computed column and on top of which we are also required to calculate something in SELECT statement so here is the case....

In one Crate we have 13 dozens of product packets are stored and as you know in one dozen its 12 packets. 

CREATE TABLE MyGeneralStore
  (
     productid    INT IDENTITY(1, 1) PRIMARY KEY NOT NULL,
     product_name VARCHAR(50) NOT NULL,
     price        TINYINT NOT NULL,
     crate_qty    TINYINT NOT NULL,
     total_dozen AS crate_qty * 13
  );

INSERT INTO MyGeneralStore
            (product_name,
             price,
             crate_qty)
VALUES      ('Kesar',
             '28',
             '23');

INSERT INTO mygeneralstore
            (product_name,
             price,
             crate_qty)
VALUES      ('Laung',
             '28',
             '23');

INSERT INTO MyGeneralStore
            (product_name,
             price,
             crate_qty)
VALUES      ('Elaichi',
             '28',
             '23'); 


हे भगवान अपनी कृपा हमपे बरसाना!

T. Amit Vaid S.

5 comments:

अमित विजय मुंशी श्याम वैद (रजवाड़ा हिन्दू) {हक़ से आजादी मिला आराम} Blog said...

अब तिनके से लेके लट्ठ का उदाहरण लेलो, जब कभी पूरा काम होता है तो टीम वर्क वाली बात हर कोई मजबूत बताता है जिसके चूज करने या मिलकर टारगेट चेज़ करने को जो पुराने इश्यूज की याद बता रहा था, वो टीम में शामिल नहीं है!

AM_SCHEMAMGR_UNSHARED_CACHE,SECURITY_MUTEX

बाकी वेटटाइप्स आदी सुरक्षित...

अमित विजय मुंशी श्याम वैद (रजवाड़ा हिन्दू) {हक़ से आजादी मिला आराम} Blog said...

Topic

नए विचार का वेलकम, Underscore इन Like, we are perfect

Looks like
- Admit & Discharge events

https://learn.microsoft.com/en-us/sql/t-sql/language-elements/wildcard-match-one-character-transact-sql?view=sql-server-ver16

https://learn.microsoft.com/en-us/answers/questions/321312/sql-admit-and-discharge-events

साधों ने सादा जीवन पर्याप्त जीना सीखाया!

पतझड़ सावन कई मौसम आए, DBA निरंतर बढ़ता गया!

T. Amit Vaid S.

अमित विजय मुंशी श्याम वैद (रजवाड़ा हिन्दू) {हक़ से आजादी मिला आराम} Blog said...

एक DBA अवतार जब बड़ा दानी और गुणी बताए तो समझो कि बस उसे ओवरटाइम नहीं मिलता! आप किसी ऐसे DBA को जानते हो?

गौर कौन करेगा हम या तुम...!

विचार का वेलकम
Named Instance, Boolean Datatype

अमित विजय मुंशी श्याम वैद (रजवाड़ा हिन्दू) {हक़ से आजादी मिला आराम} Blog said...

कितने शोर में READ Uncommitted Level के विलंब के डर से खूब मनोबल बढ़ाया, तो हल निकला था!

अमित विजय मुंशी श्याम वैद (रजवाड़ा हिन्दू) {हक़ से आजादी मिला आराम} Blog said...

ऐसा माना गया है कि बैकअप लेने के 25 मिनट पहले और 25 मिनट बाद में मेंटिनेंस क्लीनअप टास्क नहीं चलानी चाहिए!

विचार का वेलकम
Named Instance, Boolean Datatype