sql
stringlengths
6
1.05M
DROP TABLE B_TICKET CASCADE CONSTRAINTS / DROP TABLE B_TICKET_DICTIONARY CASCADE CONSTRAINTS / DROP TABLE B_TICKET_DICTIONARY_2_SITE CASCADE CONSTRAINTS / DROP TABLE B_TICKET_MESSAGE CASCADE CONSTRAINTS / DROP TABLE B_TICKET_MESSAGE_2_FILE CASCADE CONSTRAINTS / DROP TABLE B_TICKET_ONLINE CASCADE CONSTRAINTS / DROP TA...
<reponame>truwl/gdc-dnaseq-cwl SELECT * FROM wgs_753_status; SELECT * FROM wgs; SELECT * FROM run_status_bqsr_wgs_jan2017; -- SELECT distinct(bam_signpost_id),bam_uuid,s3_bam_url FROM run_status_bqsr_wgs_jan2017 WHERE status = 'COMPLETE'; SELECT distinct(cghub_id), gdc_src_id, gdc_id, filename FROM wgs order by cghub_...
INSERT INTO "public"."chart_ref" ("location", "version", "is_default", "active", "created_on", "created_by", "updated_on", "updated_by", "name") VALUES ('cronjob-chart_1-2-0', '1.2.0', 'f', 'f', 'now()', 1, 'now()', 1, 'Cron Job & Job'); INSERT INTO "public"."chart_ref" ("location", "version", "is_default", "active", "...
<filename>test_and_ground/asist/prc/template/template_fm_dirrename.prc PROC $sc_$cpu_fm_dirrename ;******************************************************************************* ; Test Name: FM_DirRename ; Test Level: Build Verification ; Test Type: Functional ; ; Test Description ; The purpose of this...
-- This script uses H2 Database specific language extensions "IF NOT EXISTS" to make it idempotent CREATE TABLE IF NOT EXISTS ACCOUNT (ACCOUNTID VARCHAR, NICKNAME VARCHAR, PRIMARY KEY (ACCOUNTID)); CREATE TABLE IF NOT EXISTS NICKNAME (NICKNAME VARCHAR, COUNT INTEGER NOT NULL, PRIMARY KEY (NICKNAME));
CREATE TABLE IF NOT EXISTS migrations ( version int NOT NULL PRIMARY KEY, timestamp timestamp with time zone DEFAULT (CURRENT_TIMESTAMP) );
-- @author prabhd -- @created 2012-12-05 12:00:00 -- @modified 2012-12-05 12:00:00 -- @tags dml -- @db_name dmldb -- @description test3: UDF with Insert within transaction \echo --start_ignore set gp_enable_column_oriented_table=on; \echo --end_ignore DROP FUNCTION IF EXISTS dml_fn2(int); CREATE OR REPLACE FUNCTION...
<gh_stars>0 CREATE FUNCTION StructuredError.ErrorLookup(@Proc sql_variant, @ErrorName VARCHAR(128), @xmlArgs XML = NULL) RETURNS VARCHAR(max) AS /********************************************************************************************************************************** DESCRIPTON: Generate structure...
<gh_stars>0 alter table side_frame add column real_id int; alter table side_frame drop real_factory; alter table side_frame drop real_produced_year;
-- TAB-4395 alter table ORIGINALITYREPORT add ( nextSubmitAttempt TIMESTAMP, submitAttempts NUMBER(2) DEFAULT 0, submittedDate TIMESTAMP, nextResponseAttempt TIMESTAMP, responseAttempts NUMBER(2) DEFAULT 0, responseReceived TIMESTAMP, reportUrl nvarchar2(255), significance FLOAT(5), matchCount NUMBER(...
<filename>sql/mabase.sql drop table if exists AnneeAcademique; drop table if exists Classe; drop table if exists Eleve; drop table if exists Evaluation; drop table if exists Matiere; drop table if exists Note; drop table if exists Parent; drop table if exists Professeur; drop table if exists Ser...
<reponame>lliban01/Fproj DROP DATABASE IF EXISTS quotes_db; CREATE DATABASE quotes_db; USE quotes_db; INSERT INTO clients (fullName, address, email, createdAt, updatedAt) values ("<NAME>", "1523 College St", "<EMAIL>", NOW(), NOW()); INSERT INTO clients (fullName, address, email, createdAt, updatedAt) values ("<NA...
CREATE TABLE views ( id uuid PRIMARY KEY, t timestamp without time zone NOT NULL, url text NOT NULL ); CREATE INDEX views__t ON views (t); CREATE INDEX views__url__t ON views (url, t); CREATE TABLE requests ( id uuid PRIMARY KEY, view_id uuid REFERENCES views(id) NOT NU...
<filename>OUGN 2017/00 Create p1 and p2.sql ALTER SESSION SET plscope_settings='identifiers:all, statements:all'; create or replace procedure p1 (p_id number, p_name out varchar2) is begin select last_name || ' OUGN' into p_name from employees where employee_id = p_id; s...
<filename>backend/prisma/migrations/20210219224458_add_roles/migration.sql -- CreateTable CREATE TABLE "Role" ( "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, "name" TEXT NOT NULL ); -- CreateTable CREATE TABLE "_RoleToUser" ( "A" INTEGER NOT NULL, "B" TEXT NOT NULL, FOREIGN KEY ("A") REFERENCES ...
<gh_stars>1-10 -- start J:\awww\apl\dev1\zz\zz\aplw_old\papl1\tema\wishPDO\z_instalac_ddl_bckup\DDL_wishlist_oracle.sql -- start J:\awww\apl\dev1\pdev1\04tema\05wishPDO\z_ddl\DDL_wishlist_oracle.sql -- start J:\awww\apl\dev1\01apl\04tema\05wish\app\database\oracle\DDL_wishlist_oracle.sql -- winkey+X -> Comm.prompt admi...
ALTER TABLE "osm_line" ADD COLUMN "gid" INTEGER; CREATE SEQUENCE "osm_line_gid_seq"; UPDATE osm_line SET gid = nextval('"osm_line_gid_seq"'); ALTER TABLE "osm_line" ALTER COLUMN "gid" SET DEFAULT nextval('"osm_line_gid_seq"'); ALTER TABLE "osm_line" ALTER COLUMN "gid" SET NOT NULL; ALTER TABLE "osm_line" ADD UNIQUE...
<filename>SQLServer/2005/GrowthWareDB/Schema Objects/Schemas/dbo/Programmability/Stored Procedures/ZFP_SET_GROUP.proc.sql CREATE PROCEDURE [ZFP_SET_GROUP] ( @P_GROUP_SEQ_ID INT, @P_NAME VARCHAR(128), @P_DESCRIPTION VARCHAR(512), @P_SE_SEQ_ID INT, @P_ADDED_BY INT, @P_ADDED_DATE DATETIME, @P_UPDATED_BY INT, @P_U...
/*-------------------* | <NAME> | | URI 2745 | | Taxas | *--------------------* nome da pessoa e o valor que ela deve pagar para o governo com a precisão de duas casas decimais. */ select name, round(salary*10/100,2) AS tax from people where salary>3000;
-- file:rules.sql ln:1178 expect:true SELECT pg_get_viewdef(0)
SELECT TABLEID AS TableId , FIELDID AS FieldId , Name AS AotName , SQLNAME AS SqlName FROM SQLDICTIONARY WHERE TABLEID = @TableId AND SHADOW = 0 ORDER BY FIELDID
<filename>LeapList.DB/Stored Procedures/uspCheckIfUserExists.sql<gh_stars>0 CREATE PROCEDURE [uspCheckIfUserExists] @username VARCHAR(8000) AS SELECT COUNT(*) AS UserCheck FROM UserProfile WHERE Username = @username
/* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 80019 Source Host : localhost:3306 Source Schema : douban_movie Target Server Type : MySQL Target Server Version : 80019 File Encoding : 65001 Date: 01/10/20...
CREATE TABLE setting ( key TEXT NOT NULL PRIMARY KEY UNIQUE, value TEXT ); CREATE TABLE location ( id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE, chng_time INTEGER NOT NULL, name TEXT, time TEXT NOT NULL, lat TEXT NOT NULL, lng TEXT NOT NULL ); CREATE TABLE person ( id ...
CREATE TABLE `role` ( `id` varchar(32) NOT NULL, `name` varchar(100) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
-- phpMyAdmin SQL Dump -- version 3.4.11.1deb2+deb7u2 -- http://www.phpmyadmin.net -- -- Хост: localhost -- Время создания: Мар 13 2017 г., 00:45 -- Версия сервера: 5.5.47 -- Версия PHP: 5.4.45-0+deb7u2 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER...
<reponame>EnsemblGenomes/eg-rest<gh_stars>1-10 -- MySQL dump 10.13 Distrib 5.1.61, for redhat-linux-gnu (x86_64) -- -- Host: mysql-eg-devel-1.ebi.ac.uk Database: test_escherichia_coli_core -- ------------------------------------------------------ -- Server version 5.5.36-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=...
CREATE OR REPLACE FUNCTION test_patchset_diffstats_table() RETURNS SETOF TEXT LANGUAGE plpgsql AS $$ BEGIN RETURN QUERY SELECT has_table('patchset_diffstats'); -- Columns RETURN QUERY SELECT columns_are('patchset_diffstats', ARRAY['id', 'files_changed'...
ALTER TABLE secrets ADD owner BIGINT;
<reponame>opengauss-mirror/Yat -- @testpoint: opengauss关键字execute(非保留),自定义数据类型名为execute 合理报错 --关键字execute作为数据类型不带引号,创建成功 drop type if exists public.execute; CREATE TYPE public.execute AS (f1 int, f2 text); select typname from pg_type where typname ='public.execute'; drop type public.execute; --关键字execute作为数据类型加双引号,创建成...
-- This file is automatically generated by LogicalPlanToSQLSuite. SELECT a, COUNT(DISTINCT b), COUNT(DISTINCT c), SUM(d) FROM parquet_t2 GROUP BY a -------------------------------------------------------------------------------- SELECT `gen_attr` AS `a`, `gen_attr` AS `count(DISTINCT b)`, `gen_attr` AS `count(DISTINCT ...
<filename>src/MariaDB/exercises/Kapitel_09/Exercise_9_5_1.sql<gh_stars>0 USE Uebungen; SELECT vname, name FROM ma LIMIT 15; SELECT vname, name, plz, ort FROM ma LIMIT 15; SELECT vname AS Vorname, name AS Familienname, plz AS Postleitzahl, ort As Wohnort FROM ma LIMIT 15; SELECT vname AS Vorname, name AS Familienna...
<filename>conf/evolutions/default/7.sql # PaymentProffs schema # --- !Ups CREATE TABLE PaymentProffs ( id INT(11) NOT NULL AUTO_INCREMENT, orderId INT(11) NOT NULL, amount DOUBLE UNSIGNED NOT NULL, note VARCHAR(255) NOT NULL, paymentDate DATETIME DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (id), FOREIGN KEY (...
<reponame>neosys-opentech/identity-db CREATE UNIQUE INDEX [IX_AspNetRoles_NormalizedName] ON [dbo].[AspNetRoles] ([NormalizedName]) WHERE [NormalizedName] IS NOT NULL
CREATE PROCEDURE dbo.uspUpdateReport @pReportID int, @pUsername nvarchar(50), @pSubject nvarchar(50), @pDescription nvarchar(500), @responseMessage nvarchar(250) OUTPUT AS BEGIN SET NOCOUNT ON DECLARE @ReporterID int = (SELECT TOP 1 id FROM reporter WHERE username = @pUsername) IF @ReporterID IS NULL SET @res...
-- 175. 组合两个表 -- https://leetcode-cn.com/problems/combine-two-tables/ SELECT FirstName, LastName, City, State FROM Person left join Address -- 外连接(outer join),默认 inner join on Person.PersonId = Address.PersonId -- 使用 where 右边内容出现不存在,会失败 -- inner join:2表值都存在 -- outer join:附表中值可能存在null的情况。 -- 总结: -- ①A in...
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; -- -- Database: `app` -- CREATE TABLE `starredrepositories` ( `id` int(11) NOT NULL, `name` varchar(255) DEFAULT NULL, `owner` varchar(255) DEFAULT NULL, `link` varchar(255) DEFAULT NULL, `...
CREATE DATABASE edtextos CHARACTER SET utf8 COLLATE utf8_general_ci; USE edtextos; CREATE TABLE usuarios( id INT NOT NULL AUTO_INCREMENT, username VARCHAR(50), password VARCHAR(16), PRIMARY KEY (id) ); CREATE TABLE textos( id INT NOT NULL AUTO_INCREMENT, usuarios_id INT NOT NULL, titulo VAR...
SET DEFINE OFF; CREATE UNIQUE INDEX AFW_01_MODL_MESG_NOTFC_PK ON AFW_01_MODL_MESG_NOTFC (SEQNC) LOGGING /
<gh_stars>10-100 -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 1192.168.3.11 -- Generation Time: Mar 28, 2020 at 03:57 PM -- Server version: 10.1.38-MariaDB -- PHP Version: 5.6.40 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00...
# Write your MySQL query statement below UPDATE salary set sex=if(sex='m','f','m')
-- Consider P1(a,b) and P2(c,d) to be two points on a 2D plane. -- a happens to equal the minimum value in Northern Latitude (LAT_N in STATION). -- b happens to equal the minimum value in Western Longitude (LONG_W in STATION). -- c happens to equal the maximum value in Northern Latitude (LAT_N in STATION). -- d happen...
ALTER TABLE public.messages DROP COLUMN environment_id;
CREATE OR REPLACE FUNCTION de_metas_contracts.fetchflatratetermhierarchy_byC_Flatrate_Term_id(IN p_c_flatrate_term_id numeric) RETURNS TABLE(initial_ft_id numeric, path numeric[]) AS $BODY$ WITH RECURSIVE node_graph AS ( SELECT ft.c_flatrate_term_id as initial_ft_id, ft.c_flatrateterm_next_id as next_ft_id, ARRAY...
<filename>SQL/SQLQuery1.sql CREATE DATABASE learn; USE learn; CREATE TABLE STU (RNO INT, NAME CHAR(5), AGE INT); SELECT * FROM STU; INSERT INTO STU (RNO, NAME, AGE) VALUES(1,'AJAY',12); SELECT * FROM STU; SELECT RNO, NAME, AGE FROM STU; INSERT INTO STU VALUES (2,'MOHIT',13); SELECT * FROM STU; ...
<reponame>DouglasMoran/ACADEMY-DB-I-2018 -- MySQL dump 10.13 Distrib 5.7.23, for Linux (x86_64) -- -- Host: localhost Database: academy -- ------------------------------------------------------ -- Server version 5.7.23-0ubuntu0.16.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET ...
<filename>erpfil/initial-data-ru.sql -- Fill the database with initial values. DELETE FROM partner_type; INSERT INTO partner_type (title, customer, contractor) VALUES( "Клиент", 1, 0 ); INSERT INTO partner_type (title, customer, contractor) VALUES( "Подрядчик", 0, 1 ); INSERT INTO partner_type (title, customer, co...
<reponame>leongold/ovirt-engine select fn_db_add_column('storage_domain_static', 'wipe_after_delete', 'boolean NOT NULL DEFAULT false'); UPDATE storage_domain_static SET wipe_after_delete = true FROM vdc_options WHERE vdc_options.option_name = 'SANWipeAfterDelete' AND vdc_options.version = 'general' ...
<gh_stars>0 USE recd; /* First make sure all other queries are dead. */ SELECT concat('KILL ',ID,';') from information_schema.processlist WHERE USER='root' AND INFO LIKE "%killable%" AND INFO NOT LIKE "%processlist%" INTO outfile '/tmp/recd/killprocesses.sql'; SOURCE /tmp/recd/killpro...
<reponame>17803903903/renren-fast /* Navicat MySQL Data Transfer Source Server : 172.16.17.32 Source Server Version : 50731 Source Host : 172.16.17.32:3306 Source Database : renren Target Server Type : MYSQL Target Server Version : 50731 File Encoding : 65001 Date: 2021-04-08 16:14...
/* * Copyright (c) 2018 LabKey Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
#getByDomainName SELECT dom_id, dom_handle, dom_unicode_name, dom_port43, zone_id FROM {schema}.domain WHERE dom_unicode_name=? AND zone_id = ?; #searchByPartialNameWZone SELECT domain.dom_id, domain.dom_handle, domain.dom_unicode_name, domain.dom_port43, domain.zone_id FROM {schema}.domain WHERE domain.dom_unicode_na...
<reponame>imran31415/live<filename>mysql/database.sql CREATE DATABASE `go-admin-test`; USE `go-admin-test`;
<reponame>NeSh74/MS-SQL-September-2021 --USE [SoftUni] SELECT [DepartmentID], SUM([Salary]) as [TotalSalary] FROM [Employees] GROUP BY [DepartmentID] ORDER BY [DepartmentID]
SELECT p.`id`, b.`id` AS brand_id, p.`name`, p.`quantity_in_stock` FROM `products` AS p JOIN `brands` AS b ON p.`brand_id` = b.`id` WHERE p.`price` > 1000 AND p.`quantity_in_stock` < 30 ORDER BY p.`quantity_in_stock` , p.`id`;
-- dois by host with k as ( select host, count(distinct id) as total from responses group by host ) select j.host, count(distinct j.id) as count_w_doi, round(count(distinct j.id) / max(k.total)::numeric * 100., 2) as pct_w_doi, max(k.total) as total_responses from responses j inner join unique...
# 將 product 的資料依價格從高到低做排序。 /* asc 由小到大 desc 由大到小 */ select * from orders.products order by Price desc;
<reponame>ben-lei/dnSkillTreeScripts SELECT l._SkillIndex as _SkillID, (l._SkillLevel - 1) as _SkillLevel, -- convenient 0 based index l._LevelLimit, -- char level req to reach this skill level FLOOR(l._DelayTime / 1000) as _DelayTime, -- skill cooldown l._DecreaseHP, l._DecreaseSP, l._SkillExpl...
-- phpMyAdmin SQL Dump -- version 4.0.10.18 -- https://www.phpmyadmin.net -- -- Servidor: localhost:3306 -- Tiempo de generación: 05-04-2017 a las 09:23:14 -- Versión del servidor: 5.6.28-76.1-log -- Versión de PHP: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_...
<reponame>jacob-benedict/MacAdmin ############################# # Clean up icons in the JSS # ############################# # Resources: jaycohen @ https://www.jamf.com/jamf-nation/feature-requests/1474/manage-self-service-policy-icons ############################# ## Phase 1 of icon clean up # Create a backup of t...
-- -- Copyright (c) Microsoft Corporation. All rights reserved. -- Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. -- CREATE TABLE [dbo].[RewardPayouts] ( [Id] [uniqueidentifier] NOT NULL, [RewardId] [uniqueidentifier] NOT NULL, [RewardReasonId] [int] NOT NULL,...
DROP TABLE IF EXISTS `XXX_papoo_bannerverwaltung_daten`; ##b_dump## DROP TABLE IF EXISTS `XXX_papoo_bannerverwaltung_pref`; ##b_dump## DROP TABLE IF EXISTS `XXX_papoo_banner_menu_lookup`; ##b_dump## DROP TABLE IF EXISTS `XXX_papoo_banner_artikel_lookup`; ##b_dump##
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [AbpWebhookSendAttempts]( [Id] [uniqueidentifier] NOT NULL, [TenantId] [int] NULL, [WebhookEventId] [uniqueidentifier] NOT NULL, [WebhookSubscriptionId] [uniqueidentifier] NOT NULL, [Response] [nvarchar](max) NULL, [ResponseStatusCode...
/* ==Scripting Parameters== Source Server Version : SQL Server 2017 (14.0.3006) Source Database Engine Edition : Microsoft SQL Server Enterprise Edition Source Database Engine Type : Standalone SQL Server Target Server Version : SQL Server 2017 Target Database Engine Edition : Microsoft SQL Ser...
INSERT INTO scxa_analytics(experiment_accession, gene_id, cell_id, expression_level) VALUES ('E-MTAB-5061', 'ENSG00000107263', 'ERR1632053', 26.78); INSERT INTO scxa_analytics(experiment_accession, gene_id, cell_id, expression_level) VALUES ('E-MTAB-5061', 'ENSG00000204947', 'ERR1633512', 2.37); INSERT INTO scxa_analyt...
<reponame>miaoyinjun/boot-admin ALTER TABLE `student` DROP COLUMN `creator_user_id`;
<gh_stars>100-1000 -- Updating VnicProfileUser to allow viewing children. UPDATE roles SET allows_viewing_children = true WHERE name = 'VnicProfileUser';
-- +migrate Up -- 2021-08-02 -- Add channel and message IDs to the mod log for editing mod log reasons. alter table mod_log add column channel_id bigint not null default 0; alter table mod_log add column message_id bigint not null default 0;
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- База данных: `af-on.blog` -- CREATE DATABASE IF NOT EXISTS `af-on.blog` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; USE `af-on.blog`; -- -------------------------------------------------------- -- -- Структура таблицы `category` -- CR...
<reponame>clouserw/olympia<gh_stars>1-10 INSERT INTO waffle_flag_mkt (name, everyone, percent, superusers, staff, authenticated, rollout, note) VALUES ('advanced-payments-submission', 0, NULL, 0, 0, 0, 0, 'A more advanced payments submission');
--test enum columns in select statement create table sel( id int primary key auto_increment, color enum('red', 'yello', 'blue', 'white', 'black', 'pink'), _day enum('sun', 'mon', 'tue', 'wed', 'thur', 'fri', 'sat') not null, fruit enum('apple', 'orange', 'peach', 'banana', 'strawberry'), status enum('inserted', ...
<filename>src/test/feature/Ranger/sql/admin/21.sql insert into foo(i) values(1234);
-- insert a new file into the database with curr_anime_id as ( select anime_id from anime where anime_name = $1 ), curr_char_id as ( select character_id from people WHERE character_name = $2 AND anime_id = (select * from curr_anime_id) ) INSERT INTO files (link, character_id, file_name) VALUES ($3, (select * ...
<reponame>danielh989/tavo_sg /* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50543 Source Host : 127.0.0.1:3306 Source Database : tavo_sg Target Server Type : MYSQL Target Server Version : 50543 File Encoding : 65001 Date: 2015-05-1...
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3309 -- Erstellungszeit: 14. Apr 2021 um 12:23 -- Server-Version: 10.5.9-MariaDB -- PHP-Version: 8.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
<filename>database/db_pkl (1).sql -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 15 Jul 2020 pada 09.03 -- Versi Server: 10.1.28-MariaDB -- PHP Version: 7.1.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone ...
CREATE TABLE public.dim_state ( id integer NOT NULL DEFAULT nextval('dim_state_id_seq'::regclass), state character(256) COLLATE pg_catalog."default" NOT NULL, iso_id integer NOT NULL, timezone_id integer NOT NULL, CONSTRAINT state_pkey PRIMARY KEY (id), CONSTRAINT fk_iso FOREIGN KEY (iso_id) ...
-- -- 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; ALTER TABLE IF EXISTS ONLY public.agricultu...
USE [VipunenTK] GO /****** Object: View [dbo].[v_f_tab_otv_toinen_aste] Script Date: 10.8.2021 16:01:16 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER VIEW [dbo].[v_f_tab_otv_toinen_aste] AS --aloittaneet ja opiskelijat select [Tilastovuosi] = f.tilv ,[Sukupuoli] = d1.sukupuoli ,[Äidinkie...
-- Script ID : TC_7.0 -- use GMFSP_db; SELECT algorithmcode AlgorithmName, avg(forecastcloseprice) ForecastPriceAverage, min(forecastdate) NextDate, max(forecastdate) LastDate, count(distinct forecastdate) NumOfDaysAhead FROM dbo_algorithmforecast WHERE forecastdate > current_date() GRO...
-- !Ups CREATE TYPE TRANSACTION_STATUS AS ENUM ( 'SUCCESS', 'FAIL' ); ALTER TABLE transactions ADD COLUMN status TRANSACTION_STATUS NOT NULL DEFAULT 'FAIL'::TRANSACTION_STATUS;
<gh_stars>1-10 CREATE TABLE photos (`id` UNSIGNED INTEGER, `tg_file_id` VARCHAR(128)); CREATE UNIQUE INDEX photos__id ON photos (`id`); CREATE TABLE chats (`id` UNSIGNED INTEGER, `tg_chat_id` VARCHAR(128)); CREATE UNIQUE INDEX chats__id ON photos (`id`); CREATE TABLE photos_received(`photo_id` UNSIGNED INTEGER, `cha...
<reponame>sdbs-uni-p/usage-of-not-replication --This query shows that, out of 50 occurrences of not.any, each of them is either --followed by ref or by properties or by required select line, a.anum, array_agg(distinct k.key), count(*) from dfn2, jsonb_path_query(sch,'strict $.**.not.anyOf') with ordinality as a ...
<filename>Four2One/Four2One/Scripts/DBUpdate/SystemObjects/Tables/TableEdits/mst_VisitType.sql /* mst_VisitType */ If Not Exists (Select * From sys.columns Where Name = N'Custom' And Object_ID = Object_id(N'Mst_VisitType')) Begin Alter table dbo.Mst_VisitType Add Custom bit default 1 End Go Update Mst_VisitTyp...
SELECT TIMESTAMPDIFF(SQL_TSI_MONTH, CAST(TIMESTAMPADD(SQL_TSI_MONTH, -15, o_orderdate) AS DATE), o_orderdate) AS num_of_months FROM orders WHERE o_orderkey = 1;
<filename>Popolamento e Creazione/DROP.sql DROP TABLE BUSTA_PAGA; DROP TABLE DIPENDETE; DROP TABLE MONTATORE; DROP TABLE VENDITORE; DROP TABLE MAGAZZINIERE; DROP TABLE COMMERCIALISTA; DROP TABLE PAGAMENTO; DROP TABLE CLIENTE; DROP TABLE CONTRATTO; DROP TABLE VENDITORE; DROP TABLE PRESTIGIO; DROP TABLE MOBILE...
-- RDBMS: SYBASE -- SERVER NAME: -- SCHEMA: 1.0 -- DATABASE REVISION: -- CLIENT SOFTWARE REVISION: -- SNAPSHOT AUTHOR: <NAME> -- PHYSICAL LOCATION: -- RDBMS VERSION: SYBASE v12.5 -- NOTE: -- Sybase ...
<filename>engine.jaxb/src/test/resources/org/opencds/cqf/cql/engine/execution/ElmTests/Regression/qdm2020/HFBetaBlockerTherapyforLVSD-9.2.000.cql library HFBetaBlockerTherapyforLVSD version '9.2.000' using QDM version '5.5' include MATGlobalCommonFunctions version '5.0.000' called Global codesystem "LOINC": 'urn:oid...
/****** Object: View [dbo].[V_Material_Containers_List_Report] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE VIEW [dbo].[V_Material_Containers_List_Report] AS SELECT Container, [Type], [Location], Items, FileCount AS Files, [Comment], [Status],...
CREATE TABLE `audit_consumer_config` ( `aid` int(11) NOT NULL COMMENT '审核id', `consumer_id` int(11) DEFAULT NULL COMMENT 'consumer id', `permits_per_second` float DEFAULT NULL COMMENT 'qps', `enable_rate_limit` tinyint(4) DEFAULT NULL COMMENT '0:不限速,1:限速', `pause` tinyint(4) DEFAULT NULL COMMENT '0:不暂停,1...
ALTER TABLE "selfservice_registration_flows" DROP CONSTRAINT "selfservice_registration_flows_nid_fk_idx";
DROP TABLE usuarios CASCADE; CREATE TABLE usuarios ( id bigserial PRIMARY KEY , email varchar(255) NOT NULL UNIQUE , password varchar(255) NOT NULL ); DROP TABLE albumes CASCADE; CREATE TABLE albumes ( id bigserial PRIMARY KEY , titulo varchar(255) NOT NULL , anyo numeric(4) ); ...
IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'sp_Jogos_LoadJogos') BEGIN DROP Procedure sp_Jogos_LoadJogos END GO CREATE PROCEDURE [dbo].[sp_Jogos_LoadJogos] ( @CurrentLogin varchar(25), @CurrentDateTime DateTime = null, @Rodada int = 0, @DataInicial datetime = n...
<gh_stars>0 -- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 10.1.34-MariaDB - mariadb.org binary distribution -- Server OS: Win32 -- HeidiSQL Version: 9.4.0.5125 -- ------------------------------------...
<reponame>jtruon/MoooMoooVie<filename>UpdatingAward.sql UPDATE `movies2017`.`awards_movies` SET `Award_idAward`='6' WHERE `Award_idAward`='7' and`Movies_idMovies`='4'; SELECT awards.idAward AS Award_ID, awards.name AS Award_Name, awards_movies.Movies_idMovies AS Movie_ID, movies.title AS Movie_Tittle FROM movies2017.aw...
SET SERVEROUTPUT ON DECLARE c_code branch.code %type ; c_name branch.name %type ; c_assets branch.assets %type ; CURSOR c1 IS SELECT code ,name,assets FROM branch; c_ssn customer.ssn %type ; c_custname customer.custname %type ; c_place customer.place %type ; CURSOR c2 IS SELECT ssn,custname,place FROM customer; c_acc...
--This query joins the index usage stats from all nodes to determine which tables are the most used. SELECT s.name , t.name , MAX(pnt.create_date) AS create_date , MAX(pnt.modify_date) AS modify_date , MAX(IUS.user_seeks) AS user_seeks , MAX(IUS.user_scans) AS user_scans , MAX(IUS.user_lookups) AS user_lookup...
<reponame>pavel-voinov/oracle-dba-workspace /* */ @@reports.inc column conf# format 9990 heading "#" column name format a50 heading "Name" column value format a100 heading "Value" SELECT conf#, name, value FROM v$rman_configuration ORDER BY 1 /
<reponame>schniggie/Projects-MS-SQL-Server-DBA  CREATE PROCEDURE [srv].[SendDBMail] @recipients nvarchar(max), @srr_title nvarchar(255), @srr_mess nvarchar(255), @isHTML bit=0 AS BEGIN /* отправка сообщения на почту */ SET NOCOUNT ON; declare @dt datetime=getdate(); declare @recipient nvarchar(255); decla...
create table Users ( Users_Id int auto_increment primary key, Banned enum ('No', 'Yes') null, Role enum ('client', 'driver', 'partner') null ); INSERT INTO leetcode_easy.Users (Users_Id, Banned, Role) VALUES (1, 'No', 'client'); INSERT INTO leetcode_easy.Users (Users_Id, Ban...