sql
stringlengths
6
1.05M
<filename>Tenant.SiteMetadata/private/sql/views/vw_SitesByTemplate.sql<gh_stars>0 CREATE OR ALTER VIEW dbo.SiteByTemplate AS SELECT [Template], COUNT(*) AS 'Count' FROM dbo.tvf_Sites(15,1) GROUP BY [Template]
CREATE DATABASE SoftUni CREATE TABLE Towns ( Id INT PRIMARY KEY IDENTITY, [Name] NVARCHAR(20) NOT NULL ) CREATE TABLE Addresses ( Id INT PRIMARY KEY IDENTITY, AddressText NVARCHAR(30) NOT NULL, TownId INT CONSTRAINT FK_Address_Town FOREIGN KEY REFERENCES Towns(Id) NOT NULL ) CREATE TABLE Departments ( Id INT P...
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 1172.16.31.10 -- Generation Time: Dec 25, 2018 at 02:28 PM -- Server version: 10.1.35-MariaDB -- PHP Version: 7.2.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET ...
INSERT INTO usuarios VALUES('4c2a49ed-48be-4970-9010-edb1faf918f1', '<EMAIL>', '<PASSWORD>', 'Ramón', 0, 0, 0); INSERT INTO usuarios VALUES('53c8cf4a-adbf-11ec-b909-0242ac120002', '<EMAIL>', '1234', 'Pepe', 0, 0, 0); INSERT INTO usuarios VALUES('7b0021c2-adff-11ec-b909-0242ac120002', 'c', 'cc', 'Pepe', 0, 0, 0); I...
/******** This script creates ROLES and USER profile settings that allow us to read/write across AWS databases ********/ /* Note: This is core and critcal to our work, particularly in scaling our model selection to all HMDA loan data years (2009 - 2019) */ CREATE ROLE reporting_user WITH LOGIN PASSWORD '...
CREATE PROCEDURE sqlerodbc.perform_test_deletes ( IN p_id INTEGER, IN p_id2 INTEGER ) BEGIN /* Stored procedure is not required when executing a single SQL statement Also, MySQL doesn't support anonymous stored procedure blocks So, a temporary stored procedure is used instead */ DELETE FROM sqlerodbc.TEST...
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 11, 2020 at 03:29 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
<filename>HW3/nearester.sql<gh_stars>0 select F.FACILITYID, F.FACILITYNAME, F.GEOLOCATION, DECIMAL(DB2GSE.ST_Distance(F.GEOLOCATION, DB2GSE.ST_Point(-72.993983, 40.824369, 1), 'STATUTE MILE'), 8, 2) as DISTANCE_STATUTE_MILE from CSE532.FACILITY F inner join CSE532.FACILITYCE...
INSERT INTO books (title, authors, isbn, image_url, summary) VALUES('<NAME>', '<NAME>', '1234', 'null', 'This is a harry potter book');
-- ALTER TABLE `storages` ADD `external` tinyint default 0; --//@UNDO ALTER TABLE `storages` DROP `external`; --
/* */ @@reports.inc column owner format a30 heading "Schema name" column ts format a80 heading "Tablespaces" word_wrapped column cnt format a25 heading "Objects count|Invalid/Total" SELECT owner, cnt_invalid || '/' || cnt_total as cnt, ts FROM ( SELECT t.owner, (SELECT count(*) FROM dba_objects WHERE owner = t.owne...
<filename>scripts/move_tables_to_tablespace.sql set serveroutput on size 100000 linesize 130 pagesize 9999 timing off termout on autoprint off heading off verify off PROMPT PROMPT Altering segments &1: SELECT 'ALTER TABLE "' || table_name || '" MOVE TABLESPACE "&2";' as sql_text FROM all_tables WHERE owner = us...
-- =================================================================== -- Author: <NAME> -- Create date: 12/04/13 -- Description: Adds a entry to the h3giUpgradePricePlanBands table -- =================================================================== CREATE PROCEDURE [dbo].[h3giCreateUpgradePricePlanBand] ...
<gh_stars>10-100 -- file:inet.sql ln:27 expect:true INSERT INTO INET_TBL (c, i) VALUES ('192.168.1.2/30', '192.168.1.226')
UPDATE sd2_db_version SET version='ScriptDev2 (for MaNGOS 7829+) ';
DELETE FROM diku_mod_data_export_spring.job;
CREATE TABLE [dbo].[Customers] ( [Id] UNIQUEIDENTIFIER NOT NULL, [FirstName] NVARCHAR(64) NOT NULL, [LastName] NVARCHAR(64) NOT NULL, [Email] NVARCHAR(64) NOT NULL, [Msisdn] BIG...
<reponame>blinkops/blink-aws-query<gh_stars>10-100 select name, arn, description, db_parameter_group_family from aws.aws_rds_db_parameter_group where name = 'dummy-{{ resourceName }}'
drop table if exists downloads; create table downloads(year int, month int, country_from varchar(255), country_to varchar(255), type char(1), count int); load data infile '/tmp/aggregated_download_info.csv' into table downloads fields terminated by ';' lines terminated by '\n'; delete from downloads where country_to ...
select distinct first_name from actor; select count(*) as co, first_name from actor group by first_name having count(*) > 3 order by count(*) desc; select first_name, count(*) over (partition by first_name) as name_count from actor; with actor_rollup as ( select actor_id, first_name, last_name, count(*) over (p...
-- Sequence: public_transport_links_id_seq -- DROP SEQUENCE public_transport_links_id_seq; CREATE SEQUENCE public_transport_links_id_seq INCREMENT 1 MINVALUE 1 MAXVALUE 9223372036854775807 START 1 CACHE 1; ALTER TABLE public_transport_links_id_seq OWNER TO postgres; -- Table: public_transport_links -- ...
<gh_stars>0 -- Your SQL goes here CREATE TABLE workshops ( id SERIAL PRIMARY KEY, title VARCHAR(100) NOT NULL, content TEXT NOT NULL, end DATETIME NOT NULL, anonymous BOOLEAN NOT NULL ); CREATE TABLE criterion ( id SERIAL PRIMARY KEY, title VARCHAR...
--TABLA PARA GUARDAR LOS CURSOS CREATE TABLE Cursos( CodigoCurso VARCHAR(10), NombreCurso VARCHAR(30) NOT NULL, Precio DECIMAL(18,3), Activo BIT NOT NULL DEFAULT(1), FechaCreacion DATETIME NOT NULL DEFAULT GETDATE(), FechaModificacion DATETIME NULL, CreadoPor VARCHAR(60) NULL, ModificadoPor VARCHAR(60) NULL...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 01, 2021 at 08:19 AM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.4.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
CREATE TABLE items ( iID SERIAL PRIMARY KEY , iNAME varchar(50) NOT NULL );
<filename>src/main/resources/META-INF/com/example/CategoryDao/selectAll.sql select /*%expand*/* from Category
-- new API features UPDATE configurations SET version = '9.2', modified = now() WHERE id = 1;
alter table CleanFoodImage ADD label varchar(255);
/*=================================================*/ /*All transactions from source clientID to destinationclientID*/ /*=================================================*/ select source, (select clientName from clients c inner join client_channels_reference ccr on c.clientID=ccr.destinationClientID where ccr.code = d...
SELECT FirstName, LastName FROM Employees WHERE LastName LIKE '%EI%'
<filename>scripts/terraform/azure/postgresql/init-database.sql CREATE ROLE ctb_user WITH LOGIN NOSUPERUSER NOCREATEDB NOCREATEROLE INHERIT NOREPLICATION CONNECTION LIMIT -1 PASSWORD '--> ENTER PASSWORD HERE <--'; COMMENT ON ROLE tes IS 'Database user for the claim tax benefits front-end application.'; CREATE T...
<gh_stars>1-10 # Copyright (C) 2012-2018 Internet Systems Consortium, Inc. ("ISC") # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # This is the Kea schema specificat...
-- -- PostgreSQL database dump -- SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; SET search_path = public, pg_catalog; -- -- Name: spatialreferences; Type: VIEW; Schema: public;...
-- attach3.test -- -- execsql { -- CREATE TABLE main.t4(a, b, c); -- CREATE TABLE aux.t4(a, b, c); -- CREATE TEMP TRIGGER tst_trigger BEFORE INSERT ON aux.t4 BEGIN -- SELECT 'hello world'; -- END; -- SELECT count(*) FROM sqlite_temp_master; -- } CREATE TABLE main.t4(a, b, c); CRE...
<filename>server/conf/db/migration/default/V101__recreate_ship_image.sql drop table ship_image; create table ship_image( id int not null, image mediumblob not null, filename char(13) not null, member_id bigint not null, swf_id smallint not null, version smallint not nul...
-- Copyright (c) Microsoft Corporation. -- Licensed under the MIT License. CREATE PROC [Persisted].[ObtainSector] AS -- ============================================================================================================== -- Author: Adatis -- Description: Performs a full data load. Incremental loads are not ...
<gh_stars>10-100 CREATE TABLE `Banphrase` ( `id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, `group_id` INT(11) UNSIGNED NULL DEFAULT NULL, `enabled` TINYINT(1) NULL DEFAULT 1 COMMENT 'NULL = Inherit from group', `description` TEXT NULL COMMENT 'Optional description of the banphrase, i.e. racism or banned emote...
<reponame>LinLeng/sqlworkshops use WideWorldImporters go exec initialize go
alter table product_raw add column hc tinyint(1) default 1;
<gh_stars>0 create table tasks ( id bigint not null, name varchar(255), description varchar(255), assignee varchar(255), primary key (id) ) engine=InnoDB; insert into tasks (id, name, description, assignee) value (1, 'Task 1', 'I have something TODO', 'Crocker'); insert into tasks (id, name, descri...
<gh_stars>1-10 INSERT INTO `user` VALUES ('1', 'tom', '123'); INSERT INTO `user` VALUES ('2', 'lucy', '321');
CREATE TABLE IF NOT EXISTS users_groups ( user_id BIGINT REFERENCES users NOT NULL , group_id INTEGER REFERENCES groups NOT NULL );
CREATE TABLE IF NOT EXISTS account_era_sequences ( id BIGSERIAL NOT NULL, era DECIMAL(65, 0) NOT NULL, start_height DECIMAL(65, 0) NOT NULL, end_height DECIMAL(65, 0) NOT NU...
<filename>packages/hasura/migrations/default/1628843679047_alter_table_public_mesures_drop_constraint_mesures_editor_id_mandataire_id_numero_dossier_key/up.sql alter table "public"."mesures" drop constraint "mesures_editor_id_mandataire_id_numero_dossier_key";
/* Navicat MySQL Data Transfer Source Server : aaa Source Server Version : 50715 Source Host : localhost:3306 Source Database : secondhandbookstore Target Server Type : MYSQL Target Server Version : 50715 File Encoding : 65001 Date: 2022-02-05 21:44:44 */ SET FOREIGN_KEY_CHECKS=0;...
<gh_stars>10-100 /* Run this script on: Profiles RNS Version 2.6.0 to update its data to: Profiles RNS Version 2.7.0 *** You are recommended to back up your database before running this script! *** You should review each step of this script to ensure that it will not overwrite any customizations you have made t...
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE [dbo].[archiveAuditLog] AS DECLARE @exectime DATE; SET @exectime = GETDATE(); PRINT 'Backing up data' -- Insert all the records that are past last 3 months into the Audit backup tables INSERT INTO dbo.[AuditLogsBackup] SELECT * FROM dbo.[AuditLogs] AL...
<filename>eSchedule.sql CREATE DATABASE eSchedule; USE eSchedule; CREATE TABLE Announcements( Id INT NOT NULL AUTO_INCREMENT, DateAndTime DATETIME NOT NULL, Announcement TEXT NOT NULL, Professor VARCHAR(30) NOT NULL, PRIMARY KEY(Id) ); CREATE TABLE Users( Id INT NOT NULL AUTO_INCREMENT, Username V...
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 12, 2020 at 12:05 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.2.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
<filename>DB/tmsdup_previous.sql -- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 11, 2021 at 05:37 AM -- Server version: 10.4.17-MariaDB -- PHP Version: 7.4.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!...
-- phpMyAdmin SQL Dump -- version 4.9.7deb1 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: May 18, 2021 at 04:56 PM -- Server version: 8.0.25-0ubuntu0.20.10.1 -- PHP Version: 7.4.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
create database apporder default character set utf8mb4 collate utf8mb4_unicode_ci; use apporder; create database appuser default character set utf8mb4 collate utf8mb4_unicode_ci; use appuser; CREATE TABLE `users` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, `username` varchar(255) NOT NULL DEFAULT '', ...
-- function to migrate old revision-keeping-structures into new ones create or replace function pg_temp.pg_make_schemas_migrate_to_4_from_3 ( _application text, _schemas_type text ) returns void language plpgsql as $function$declare __application_ident text; __sc...
<filename>bilemo.sql -- phpMyAdmin SQL Dump -- version 4.7.6 -- https://www.phpmyadmin.net/ -- -- Hôte : localhost -- Généré le : mar. 21 juil. 2020 à 17:10 -- Version du serveur : 8.0.20 -- Version de PHP : 7.3.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00...
<gh_stars>0 SELECT SETSEED(0.20191231); WITH RECURSIVE parameters AS ( SELECT * FROM ( VALUES (16, 7, 50) ) v (pattern_length, pattern_count, height) CROSS JOIN LATERAL ( SELECT pattern_length * pattern_count AS width ) q ), patterns AS ( SELECT y, pattern FROM parameters CROSS JOIN LATERAL GE...
<filename>spec/sample/sample-007-mini.sql select distinct city from weather order by city;
<reponame>mhils/r8<gh_stars>10-100 BEGIN; DELETE FROM challenges; INSERT INTO challenges (cid, team, t_start, t_stop) VALUES ('Basic(expired)', 0, datetime('2018-01-01 00:00:00'), datetime('2018-01-01 14:00:00')), ('Basic(solved)', 0, datetime('2018-01-05 00:00:00'), datetime('2018-01-05 14:00:00')), ('Basic(act...
-- file:rangefuncs.sql ln:430 expect:true select insert_tt('foo')
delete from eg_roleaction where actionid = (select id from eg_action where name = 'YearwiseDCBReportResult') and roleid = (select id from eg_role where name = 'SYSTEM'); delete from eg_roleaction where actionid = (select id from eg_action where name = 'YearwiseDCBReport') and roleid = (select id from eg_role where nam...
CREATE TABLE IF NOT EXISTS Movie ( id CHAR(7), name VARCHAR(64), year INTEGER, rating VARCHAR(5), runtime INTEGER, genre VARCHAR(16), earnings_rank INTEGER, PRIMARY KEY(id) ); CREATE TABLE IF NOT EXISTS Person ( id CHAR(7), name VARCHAR(64), dob_string VARCHAR(32), pob VARCHAR(128), PRIMARY ...
<reponame>xlyric/Melanie2-InstallationAuto<filename>deb/install_roundcube_M2/usr/local/src/roundcube-account.sql<gh_stars>0 CREATE ROLE roundcube WITH LOGIN PASSWORD '<PASSWORD>' ; CREATE DATABASE roundcube OWNER roundcube;
<gh_stars>0 DROP VIEW events_v; DROP TABLE events CASCADE; DROP TABLE event_experiences CASCADE; DROP TABLE event_attributes;
set global local_infile = 1; create table stations( station_cd int not null, station_g_cd int not null, station_name varchar(100) not null, station_name_k varchar(100), station_name_r varchar(100), line_cd int, pref_cd int, post varchar(100), address varchar(100), lon float, ...
# 10/31/2013 # refactored insert results and launch viewer to preserve filenames. # proc change only
# --- !Ups create sequence saved_search_seq start with 1; # --- !Downs drop sequence if exists saved_search_seq;
<reponame>andreylipattsev/almanac.httparchive.org #standardSQL # 04_25: % of pages having WebXR frameworks SELECT client, framework, COUNT(DISTINCT page) AS pages FROM ( SELECT client, page, REGEXP_EXTRACT(LOWER(url), '(aframe|babylon|argon)(?:\\.min)?\\.js') AS framework FROM `httparchive.alm...
ALTER TABLE ofRoster ADD COLUMN stanza CLOB; UPDATE ofVersion SET version = 33 WHERE name = 'openfire';
<reponame>OpenMPDK/SMDK <configure-for-decimal.sql> <analytic-template.sql>
<reponame>karbowiak/2semsterProjekt CREATE TABLE rooms ( roomID INT NOT NULL IDENTITY(1,1), roomNumber VARCHAR(255) NOT NULL, description VARCHAR(255) NOT NULL, status VARCHAR(255) NOT NULL, discount VARCHAR(255) NOT NULL, price VARCHAR(255) NOT NULL, timeID VARCHAR(255) NOT NULL, PRIMARY KEY (roomID), ...
<reponame>mervick/phalcon-rest<filename>schema/schema.sql -- OAuth2 token table (required by OAuth2 library) CREATE TABLE `oauth2_access_token` ( `access_token` char(40) NOT NULL COMMENT 'Then access token', `user_id` int(10) DEFAULT NULL COMMENT 'The user id', `client_id` varchar(128) DEFAULT NULL COMMENT 'Clien...
<reponame>idris11/kpi -- phpMyAdmin SQL Dump -- version 4.2.7.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Feb 09, 2017 at 03:17 AM -- Server version: 5.6.20 -- PHP Version: 5.5.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C...
<reponame>piotrkubicki/messenger<gh_stars>0 DROP TABLE IF EXISTS friend_requests; CREATE TABLE friend_requests ( request_id text, sender_id text, reciever_id text, status int, PRIMARY KEY (request_id), FOREIGN KEY (sender_id) REFERENCES users (user_id), FOREIGN KEY (reciever_id) REFERENCES users (user_i...
<filename>bd/bd.sql CREATE SCHEMA `carrefour` ; -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO...
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50720 Source Host : localhost:3306 Source Database : jesper Target Server Type : MYSQL Target Server Version : 50720 File Encoding : 65001 Date: 2018-06-19 14:26:41 */ SET FOREIGN_KEY_CHECKS=0; -- --...
<gh_stars>1-10 -- Create a database. -- $ createdb weather -- -- Import the sample data. Thanks to NOAA for original data: https://www.ncdc.noaa.gov/cdo-web/ -- $ psql -f data/weather.sql weather -- -- Start the psql PostgreSQL client -- $ psql weather -- Explore the database and familiarize yourself with the data sch...
-- -------------------------------------------------------------------------------------------------------------- -- TODO: Extract the appropriate data from the northwind database, and INSERT it into the Northwind_DW database. -- ------------------------------------------------------------------------------------------...
/* SQLyog Ultimate - MySQL GUI v8.2 MySQL - 5.5.33 : Database - mangosvbaccounts ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40101 SET @OLD_SQL_MOD...
INSERT INTO cboard.dashboard_widget (widget_id,user_id,category_name,widget_name,data_json,create_time,update_time) VALUES (2,'1','Default Category','student','{"config":{"chart_type":"line","filters":[],"groups":[],"keys":[{"col":"name","type":"eq","values":[]}],"selects":["id","city","birthday","age"],"valueAxis":"...
<reponame>AVPolyakov/QueryLifting<filename>Examples/Scripts/201901271450_ParentChild.sql CREATE TABLE Parent ( ParentId INT PRIMARY KEY ); CREATE TABLE Child ( ChildId INT PRIMARY KEY, ParentId INT NOT NULL, FOREIGN KEY (ParentId) REFERENCES Parent(ParentId) ); INSERT Parent (ParentId) VALUES (1); INSERT P...
<filename>schema.sql -- -- Table structure for table `foc_affiliation_cards` -- CREATE TABLE `foc_affiliation_cards` ( `id` tinyint(3) UNSIGNED NOT NULL, `affiliation` text COLLATE utf8_bin NOT NULL, `hash` text COLLATE utf8_bin NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- -- Dumping data...
<reponame>epmd-edp/admin-console drop sequence if exists codebase_id_seq;
-- -- Name: ensure_dummy_metrics_table(text); Type: FUNCTION; Schema: admin; Owner: pgwatch2 -- CREATE OR REPLACE FUNCTION admin.ensure_dummy_metrics_table(metric text) RETURNS boolean LANGUAGE plpgsql AS $_$ DECLARE l_schema_type text; l_template_table text := 'admin.metrics_template'; l_unlog...
SELECT * FROM addresses WHERE state IS NULL
<reponame>prabhm512/employee-tracker -- Departments INSERT INTO department (dept_name) VALUES ('service'), ('testing'), ('finance'), ('product development'); -- Roles INSERT INTO emp_role (title, salary, department_id) VALUES ('qa specialist', 75000.00, 2), ('help desk technician', 45000.00, 1), ('frontend developer...
-- deadlock free bank transfer -- this is partial code to serve as an example -- to delegate responsibilities to another service layer, -- the database in this case. -- @author <NAME> -- @initialversion 2016-04-12 -- @lastchange 2018-09-05 begin work; -- declare a rule do something else than just a simple update...
drop procedure if exists sp_tbl_BookingMaster; create procedure sp_tbl_BookingMaster() begin DECLARE currentSchema varchar(100); SELECT database() into currentSchema; IF NOT EXISTS( SELECT 1 FROM information_schema.TABLES WHERE TABLE_SCHEMA = currentSchema A...
-- -------------------------------------------------------- -- Host: localhost -- Server version: 5.7.24 - MySQL Community Server (GPL) -- Server OS: Win64 -- HeidiSQL Version: 10.2.0.5599 -- -------------------------------------------------------- /...
<reponame>cagrin/tSQLt-edge<gh_stars>0 CREATE FUNCTION tSQLt.Private_GetQuotedObjectName (@ObjectName NVARCHAR(MAX)) RETURNS NVARCHAR(MAX) AS BEGIN DECLARE @QuotedObjectName NVARCHAR(MAX) = @ObjectName; IF (OBJECT_ID(@ObjectName) IS NOT NULL) BEGIN SET @QuotedObjectName = CONCAT(QUOTENAME(OBJECT_SCH...
-- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 04, 2019 at 05:23 AM -- Server version: 10.1.32-MariaDB -- PHP Version: 7.2.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
<reponame>Stoyan-Iliev/MS-SQL SELECT TOP 5 e.EmployeeID, e.FirstName, e.Salary, d.[Name] AS DepartmentName FROM Employees e JOIN Departments d ON e.DepartmentID = d.DepartmentID WHERE e.Salary > 15000 ORDER BY d.DepartmentID ASC
<reponame>atulnaik-github/mobile-shopee -- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 28, 2021 at 07:03 PM -- Server version: 10.1.34-MariaDB -- PHP Version: 7.2.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET t...
DELIMITER // CREATE OR REPLACE PROCEDURE update_user ( IN userID_in INT, IN privilegeID_in INT, IN userType_in VARCHAR(32), IN firstName_in VARCHAR(32), IN lastName_in VARCHAR(32), IN email_in VARCHAR(128) ) BEGIN ...
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 09 Des 2019 pada 11.52 -- Versi server: 10.1.36-MariaDB -- Versi PHP: 7.2.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
DELETE FROM `sys_entry` WHERE `code` = 'krap';
<filename>db/pathology2.sql -- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jan 30, 2018 at 02:56 PM -- Server version: 5.7.21-0ubuntu0.16.04.1 -- PHP Version: 7.0.22-0ubuntu0.16.04.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+0...
<reponame>tushartushar/dbSmellsData Select * from Win32_Processa where name=&quot;sshd.exe&quot;
<reponame>bertelsmannstift/Chancenportal<filename>packages/chancenportal/ext_tables.sql # # Table structure for table 'tx_chancenportal_domain_model_provider' # CREATE TABLE tx_chancenportal_domain_model_provider ( name varchar(255) DEFAULT '' NOT NULL, slug varchar(255) DEFAULT '' NOT NULL, subline varchar(255) DE...
<gh_stars>10-100 DELIMITER // CREATE TABLE IF NOT EXISTS `items` ( `ID` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT, `Content` VARCHAR(500) NOT NULL, PRIMARY KEY (`ID`), INDEX `CONTENT_INDEX` (`Content`(191)) ) COLLATE='utf8mb4_general_ci' ENGINE=InnoDB AUTO_INCREMENT=1 // CREATE TABLE IF NOT EXISTS `tags` ( `ID...
<filename>src/SFA.Apprenticeships.Data.AvmsPlus/dbo/Stored Procedures/uspThirdPartyInsert.sql CREATE PROCEDURE [dbo].[uspThirdPartyInsert] @EdsUrn int , @ThirdPartyName nvarchar(255) , @AddressLine1 nvarchar(50) , @AddressLine2 nvarchar(50) , @AddressLine3 nvarchar(50) , @AddressLin...
<reponame>MalekiSirius/Onion-Architecture USE [Kama.Mefa.Azmoon] GO IF EXISTS(SELECT 1 FROM sys.procedures WHERE [object_id] = OBJECT_ID('pbl.spIsUserAuthenticated')) DROP PROCEDURE pbl.spIsUserAuthenticated GO CREATE PROCEDURE pbl.spIsUserAuthenticated @AUserID UNIQUEIDENTIFIER, @ACommandID UNIQUEIDENTIFIER WITH ...