Skip to content
Stack Code Review
Question and answer site for peer programmer code reviews.
MENU
  • HOME

Tag: t-sql

Find occurrences of strings in view B in column from table A

By mariaPosted on March 25, 2023

Problem I’m trying to find the occurrences of strings in view B in a string in table A. However, the […]

SQL query to count loans issued during each week

By mariaPosted on March 19, 2023

Problem Calculate the number of loans issued by the Regional offices for each business week in the period from 38 […]

Query to get distinct items at the top of results and duplicates following

By mariaPosted on March 8, 2023

Problem I need to query the table below and list the distinct items at the top of my result set […]

SQL Stored Procedure to export specified data

By mariaPosted on February 14, 2023

Problem I’m currently using a stored procedure(sproc) to export to Excel. The sproc is being passed two parameters for @month […]

Second-sealed-bid auction web app

By mariaPosted on February 4, 2023

Problem I am working on a second-sealed-bid auction web app. I have an Auction table to keep auction items on […]

SQL to find table containing all specified columns

By mariaPosted on January 28, 2023

Problem I have the below code to list all tables which have columns DataAreaId and CountryRegionId. This works, but requires […]

Fetch a department’s total, Its percentage of earnings for that site and its percentage of earnings across the company

By mariaPosted on January 27, 2023

Problem I am trying to use the data from one table to produce the result set | Dept | TotalValue […]

Unduplicated counts over various dimensions

By mariaPosted on January 16, 2023

Problem I’m working with some data on college students, which has a unique key of SSN, Campus, Credential (type of […]

Excuse me, how many of you are new here? Mind if I JOIN you?

By mariaPosted on January 14, 2023

Problem I had perceived an uptick in new reviewers around here, and I wanted to see if the data backed […]

Reduce the code in a WHERE clause without using dynamic SQL

By mariaPosted on December 29, 2022

Problem How can I write the following T-SQL query part in a shorter way without using dynamic SQL? WHERE ( […]

  • 1
  • 2
  • 3
  • …
  • 11

Recent Posts

  • Program for entering 1000 random numbers into two different databases, one for odd numbers and one for even
  • Credit card validator in Python
  • Custom delete method refactoring
  • Pull, Tag, Save, Delete Multiple Docker Containers
  • Beginner number guessing game in Java
  • Regrouping JSON object
  • Calculating company-wise total expenses
  • Implementing basic sorting in Python
  • VBA performance with Early Bind vs. Late Bind on called Sub-procedure
  • Minimalist accordion implementation using vanilla JavaScript
  • Using python and beautifulsoup to iterate through a list of websites to find a particular string
  • Helper class for accessing blobs and mmap memory
  • Selectively printing elements on web page using a bookmarklet
  • Object-oriented calorie counter
  • Accumulate ids to make a single ajax request

Categories

  • .Net
  • Algorithm
  • Android
  • Array
  • Bash
  • C#
  • Console
  • CSS
  • Haskel
  • Html
  • Java
  • Javascript
  • JSON
  • MySQL
  • Node Js
  • Object Oriented
  • Parsing
  • Php
  • Programming Chalenge
  • Python 3
  • React JS
  • Recursion
  • Regex
  • Ruby
  • Security
  • Sorting
  • SQL
  • Strings
  • Swift
  • VBA
Proudly powered by WordPress / Theme: Superfast