<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Shilpa A. on Medium]]></title>
        <description><![CDATA[Stories by Shilpa A. on Medium]]></description>
        <link>https://medium.com/@shilpaag?source=rss-1287cfa1164b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Vc4YJlgATzm8VXUC9x5jgw.jpeg</url>
            <title>Stories by Shilpa A. on Medium</title>
            <link>https://medium.com/@shilpaag?source=rss-1287cfa1164b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 09:21:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shilpaag/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[One-liners ORACLE: Simplest solution for Salaries Difference]]></title>
            <link>https://medium.com/@shilpaag/one-liners-sql-best-solution-for-salaries-difference-38eee8e2151b?source=rss-1287cfa1164b------2</link>
            <guid isPermaLink="false">https://medium.com/p/38eee8e2151b</guid>
            <dc:creator><![CDATA[Shilpa A.]]></dc:creator>
            <pubDate>Mon, 04 Dec 2023 01:41:47 GMT</pubDate>
            <atom:updated>2023-12-04T04:11:27.192Z</atom:updated>
            <content:encoded><![CDATA[<p>Write a query that calculates the difference between the highest salaries found in the marketing and engineering departments. Output just the absolute difference in salaries.</p><p>Question from: <a href="https://platform.stratascratch.com/coding/10308-salaries-differences?code_type=7">https://platform.stratascratch.com/coding/10308-salaries-differences?code_type=7</a></p><p><strong>Solution</strong>:</p><p>Using Common Table Expressions (CTE) in Oracle.</p><p>with t as<br>(<br>select max(salary) as msal<br>from db_employee <br>group by department_id<br>having department_id in<br>(select id from db_dept where <br>lower(department) =’engineering’ OR <br>lower(department) =’marketing’)<br>)<br>select abs(max(msal)- min(msal)) as diff from t</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=38eee8e2151b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[One-liners: What’s wrong with having NULLs in dataset]]></title>
            <link>https://medium.com/@shilpaag/one-liners-whats-wrong-with-having-nulls-in-dataset-753c96583562?source=rss-1287cfa1164b------2</link>
            <guid isPermaLink="false">https://medium.com/p/753c96583562</guid>
            <dc:creator><![CDATA[Shilpa A.]]></dc:creator>
            <pubDate>Sun, 05 Nov 2023 22:57:55 GMT</pubDate>
            <atom:updated>2023-11-05T22:57:55.913Z</atom:updated>
            <content:encoded><![CDATA[<p>Imagine you have a class of 6 toddlers. You have to slice 1 apple and use it all. Suppose 1 kid is missing today. You are confused- Is the kid late or absent? Should I do 5 slices or 6? Similarly machines get confused. They can’t make right decisions about the <strong>importance of that feature </strong>when null values are present.</p><p>Handling null values means:</p><p>a. Cut 5 slices only. i.e. Drop 6th value OR</p><p>b. Cut 6 slices i.e. use a placeholder value (mean, median, mode, zero, space e.g. in case of strings or any other value suitable for analysis)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=753c96583562" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[One-Liners: Data Scientist Interview questions by shipping and delivery company]]></title>
            <link>https://medium.com/@shilpaag/one-liners-data-scientist-interview-questions-by-shipping-and-delivery-company-8569bea952d9?source=rss-1287cfa1164b------2</link>
            <guid isPermaLink="false">https://medium.com/p/8569bea952d9</guid>
            <dc:creator><![CDATA[Shilpa A.]]></dc:creator>
            <pubDate>Thu, 12 Oct 2023 18:57:17 GMT</pubDate>
            <atom:updated>2023-10-12T18:57:17.654Z</atom:updated>
            <content:encoded><![CDATA[<ol><li>Describe yourself and why are you interested in this position?</li><li>How would you do data validity?</li><li>Describe steps for end-to-end predictive modeling.</li><li>why type of model would you recommend using for time series predictions including volatility validations?</li><li>Your approach for trailer/vehicle routing problem involving multiple delivery points from the same origin. what modeling methods to consider?</li></ol><p><em>Feel free to share your ideas in comments. more ideas = better solutions</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8569bea952d9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[One-liners: The most abundant and free thing is]]></title>
            <link>https://medium.com/@shilpaag/one-liners-the-most-abundant-and-free-thing-is-af3282c211b7?source=rss-1287cfa1164b------2</link>
            <guid isPermaLink="false">https://medium.com/p/af3282c211b7</guid>
            <dc:creator><![CDATA[Shilpa A.]]></dc:creator>
            <pubDate>Fri, 29 Sep 2023 23:36:22 GMT</pubDate>
            <atom:updated>2023-09-29T23:36:22.477Z</atom:updated>
            <content:encoded><![CDATA[<p>ADVICE. No matter who we know, what they do or don’t do. Every body has an ‘expert opinion’ to give. I sincerely value that human trait.</p><p>So for any thing I do, I reach out to people to ask for their ‘ADVICES’. They feel happy and I learn a lot. So next time you meet an advisor, ask them the questions that they can love to give advice about.</p><p>I just gave an ‘ADVICE’ :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=af3282c211b7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[One-Liners: SelectKBest. How to choose score function]]></title>
            <link>https://medium.com/@shilpaag/one-liners-selectkbest-how-to-choose-score-function-2f37348b5b8?source=rss-1287cfa1164b------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f37348b5b8</guid>
            <dc:creator><![CDATA[Shilpa A.]]></dc:creator>
            <pubDate>Sun, 09 Apr 2023 16:02:17 GMT</pubDate>
            <atom:updated>2023-04-18T11:01:58.337Z</atom:updated>
            <content:encoded><![CDATA[<ol><li>SelectKBest is Filter based, for supervised models only.</li></ol><p><strong>CHOOSING SCORE FUNCTION</strong></p><h4>Problem Type: Regression</h4><p>from sklearn.feature_selection import SelectKBest, mutual_info_regression, f_regression</p><ol><li>Data: <strong>All Numerical. </strong>score_func =f_regression</li><li>Data:<strong> Mixed or</strong> <strong>Categorical</strong>, score_func = mutual_info_regression</li></ol><h4>Problem Type: Classification.</h4><p>from sklearn.feature_selection import SelectKBest, chi2,mutual_info_classif, f_classif</p><ol><li>Data: <strong>Numerical. </strong>score_func =f_classif</li><li>Data: <strong>Mixed. </strong>score_func = mutual_info_classif</li><li>Data: <strong>Categorical.</strong> score_func = chi2</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f37348b5b8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[One Liner SQL: Oracle Certified Professional (OCP) 1Z0–071|Session Date Time Formats]]></title>
            <link>https://medium.com/@shilpaag/one-liner-sql-oracle-certified-professional-ocp-1z0-071-session-date-time-formats-a702a1a4f154?source=rss-1287cfa1164b------2</link>
            <guid isPermaLink="false">https://medium.com/p/a702a1a4f154</guid>
            <dc:creator><![CDATA[Shilpa A.]]></dc:creator>
            <pubDate>Mon, 19 Dec 2022 05:44:15 GMT</pubDate>
            <atom:updated>2022-12-19T05:44:15.063Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Current_date</strong>: Current date of the user SESSION time zone.</p><p><em>Format: DD-MON-RRR (or the default as per nls_date_format)</em></p><p><strong>Current_timestamp:</strong> Current SESSION date with hours, minutes, seconds, fractional seconds and TIMEZONE.</p><p><em>Format</em>:<em> (current_date TIMESTAMP with TIMEZONE)</em></p><p><strong>LOCALTIMESTAMP</strong>: Current SESSION date with hours, minutes, seconds, fractional seconds. <strong>NO</strong> TIMEZONE.</p><p><em>Format</em>: <em>(current_date TIMESTAMP)</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a702a1a4f154" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[One-Liner SQL: My notes for Oracle Certified Professional 1Z0–071 (OCP)| Global Temporary Table…]]></title>
            <link>https://medium.com/@shilpaag/one-liners-ocp-1z0-071-global-temporary-table-gtt-1-1-f76026ed5d92?source=rss-1287cfa1164b------2</link>
            <guid isPermaLink="false">https://medium.com/p/f76026ed5d92</guid>
            <dc:creator><![CDATA[Shilpa A.]]></dc:creator>
            <pubDate>Thu, 15 Dec 2022 14:40:31 GMT</pubDate>
            <atom:updated>2022-12-17T23:50:19.383Z</atom:updated>
            <content:encoded><![CDATA[<h3>One-Liner SQL: My notes for Oracle Certified Professional 1Z0–071 (OCP)| Global Temporary Table (GTT) 1.1</h3><p><strong>GTT and Data Dictionary</strong></p><ol><li>Entry in Data dictionary view: Yes.</li><li>What indicates temporary table in Data Dictionary: ‘Temp’ column has value ‘Y’.</li><li><strong>Query</strong> for identifying if GTT is Session Specific or Transaction specific</li></ol><p>SELECT t.temporary, t.duration, t.*</p><p>FROM sys.dba_tables t</p><p>WHERE t.temporary=’Y’</p><p><strong>Result:</strong></p><p>SYS$TRANSACTION : ON COMMIT DELETE ROWS</p><p>SYS$SESSION : ON COMMIT PRESERVE ROWS</p><p>Ref: <a href="https://oracle-base.com/articles/misc/temporary-tables">https://oracle-base.com/articles/misc/temporary-tables</a></p><p><em>Comment for: Questions | Corrections | Topics to cover | Simply Chat :)</em></p><p><em>(I will Answer)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/230/1*s32CTqowyN_RTkFM_Q3yFA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f76026ed5d92" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[One Liner SQL: My notes for Oracle Certified Professional 1Z0–071 (OCP)|Global Temp Table (GTT) 1.0]]></title>
            <link>https://medium.com/@shilpaag/one-liners-ocp-1z0-071-global-temp-table-gtt-1-0-5ad3636d11a7?source=rss-1287cfa1164b------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ad3636d11a7</guid>
            <dc:creator><![CDATA[Shilpa A.]]></dc:creator>
            <pubDate>Thu, 15 Dec 2022 14:40:02 GMT</pubDate>
            <atom:updated>2022-12-20T06:49:55.539Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Definition of Global Temporary Table (GTT):</strong></p><p>A temporary table | data stored in temporary segments| <strong>private</strong> to user session | dropped at the end of the session or transaction.</p><p>Different sessions — same name — is ok. Each connection/session is unique.</p><p>DML(Insert, Update, Delete) on GTT fails - all the rows of the GTT are deleted.</p><p><strong>Allowed to create:</strong></p><p>Indexes, Synonyms, Triggers, Views</p><p><strong>Not allowed:</strong></p><p>1.DDL e.g. Alter table command if commit or rollback is not issued.</p><p>2. Back up and Recovery</p><p>3. Check constraints on columns</p><p>Ref: <a href="https://oracle-base.com/articles/misc/temporary-tables">https://oracle-base.com/articles/misc/temporary-tables</a></p><p><em>Comment for: Questions | Corrections | Topics to cover | Simply Chat :)</em></p><p><em>(I will Answer)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/230/1*s32CTqowyN_RTkFM_Q3yFA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ad3636d11a7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[One Liners: OCP 1Z0–071|Order By Clause]]></title>
            <link>https://medium.com/@shilpaag/one-liners-ocp-1z0-071-order-by-clause-bb079c231bba?source=rss-1287cfa1164b------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb079c231bba</guid>
            <dc:creator><![CDATA[Shilpa A.]]></dc:creator>
            <pubDate>Thu, 15 Dec 2022 14:31:01 GMT</pubDate>
            <atom:updated>2022-12-17T23:51:14.584Z</atom:updated>
            <content:encoded><![CDATA[<h3>One Liner SQL: My notes for Oracle Certified Professional 1Z0–071 (OCP)|Order By Clause</h3><p><strong>Example1</strong> : SELECT ename as “Employee”, sal as “Salary” FROM emp</p><p><strong>Valid</strong>: Should be an exact match</p><ol><li>Order by “Employee”</li><li>Order by 1</li><li>Order by ename</li></ol><p><strong>Invalid:</strong></p><ol><li>Order by <strong>3</strong> — (column name missing in select statement)</li><li>Order by “EMPLOYEE” or EMPLOYEE - (Alias name is Employee)</li><li>Order by Employee — (Double quotes “ ” missing)</li></ol><p><strong>Example2</strong> : SELECT * FROM emp;</p><p>Order by <strong>3</strong> — <strong>valid</strong> (orders by 3rd column in the table. column name not mandatory here.)</p><p><em>Comment for: Questions | Corrections | Topics to cover | Simply Chat :)</em></p><p><em>(I will Answer)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/230/1*s32CTqowyN_RTkFM_Q3yFA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb079c231bba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[One Liner SQL: My notes for Oracle Certified Professional 1Z0–071 (OCP)|Number Format]]></title>
            <link>https://medium.com/@shilpaag/one-liners-ocp-1z0-071-number-format-1b1cec98fce8?source=rss-1287cfa1164b------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b1cec98fce8</guid>
            <dc:creator><![CDATA[Shilpa A.]]></dc:creator>
            <pubDate>Thu, 15 Dec 2022 14:30:26 GMT</pubDate>
            <atom:updated>2022-12-17T23:49:57.217Z</atom:updated>
            <content:encoded><![CDATA[<p>Storage of Number data type based on input</p><h3>Input — Data Type — Result</h3><p>7,456,123.89 — Number — 7456123.89 (<em>As it is, without comma</em>)</p><p>7,456,123.89 — Number(9) — 7456124 (<em>Rounded off</em>)</p><p>7,456,123.89 — Number (9,2)— 7456123.89 (<em>As it is, without comma</em>)</p><p>7,456,123.89 — Number (9,1) — 7456123.9 (<em>Rounded off to one decimal place</em>)</p><p>7,456,123.89 — Number(6) — (<em>Error invalid number </em>)</p><p>7,456,123.89 — Number (7,-2)— 7456100 (<em>-2 indicates right to decimal point</em>)</p><p>Ref: <a href="https://docs.oracle.com/cd/A58617_01/server.804/a58241/ch5.htm">https://docs.oracle.com/cd/A58617_01/server.804/a58241/ch5.htm</a></p><p><em>Comment for: Questions | Corrections | Topics to cover | Simply Chat :)</em></p><p><em>(I will Answer)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/230/1*s32CTqowyN_RTkFM_Q3yFA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b1cec98fce8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>