Рет қаралды 65
Video 307: This is the 10th video of the SQL Interview Question series.
00:00 - Introduction to dataset and Question
03:20 - Code Explanation
13:30 - Conclusion
We are given two tables Variables and Expressions
Variables table has the variable name and values
name is the primary key for this table.
Expressions table contains a variable name and operator.
column (left_operand, operator, right_operand) is the primary key for this table.
operator is an enum that takes one of the values ('GT', 'LT', '=')
This table contains a boolean expression that should be evaluated.
The values of left_operand and right_operand are guaranteed to be in the Variables table.
We are asked to Evaluate the boolean expressions in Expressions table.
To solve this problem, we need to evaluate each boolean expression in the Expressions table using the values from the Variables table. We can achieve this by joining the Variables table twice to get the values for the left_operand and right_operand and then evaluating the expressions.
For a comprehensive understanding of these SQL methodologies and their application, please refer to this explanatory video.
code: github.com/jeg...
Follow me on,
Website : growwithdata.co/
KZbin : / @growwithdata
TikTok : / growwithdata
LinkedIn : / growwithdata
Facebook : / growwithdata.co
FB Group : groups/datainterviewpreparation
twitter : / growwithdata_co
Instagram : / growwithdata.co
WhatsApp : whatsapp.com/c...
TheWide : thewide.com/pr...
#sql #dataengineers #tablejoins #ceil #floor #bucket #meta #google #facebook #apple #paypal #netflix #amazon #deinterview #sqlinterview #interviewquestions #leetcode #faang #maanga #mysql #oracle #dbms #query #sqlserver #mysql #coderpad #aggregates #aggregation #nonaggregation #database #placementpreparation #lead #lag #windowsfunction #nullcheck #coalesce #sqlperformance #ifnull #case #lead #lag #windowsfunction #tamil #tamilpython #tamilinterview #tamilinterviewlatest #tamilinterviewquestions #sqlintamil