sql
stringlengths
6
1.05M
/* * Copyright © 2019 Lisk Foundation * * See the LICENSE file at the top-level directory of this distribution * for licensing information. * * Unless otherwise agreed in a custom licensing agreement with the Lisk Foundation, * no part of this software, including this file, may be copied, modified, * propagated...
DO $$ DECLARE integration_group_id_var integration_groups.id%TYPE; DECLARE integration_type_id_var integration_types.id%TYPE; DECLARE integration_id_var integrations.id%TYPE; DECLARE integration_param_id_var integration_params.id%TYPE; BEGIN SELECT id INTO integration_group_id_var FROM int...
CREATE USER admin WITH PASSWORD '<PASSWORD>' CREATEDB; CREATE DATABASE admin WITH OWNER = admin ENCODING = 'UTF8' LC_COLLATE = 'Portuguese_Brazil.1252' LC_CTYPE = 'Portuguese_Brazil.1252' TABLESPACE = pg_default CONNECTION LIMIT = -1; CREATE table contacts ( id serial PRIMARY KEY, nome V...
alter table "public"."facility" add foreign key ("jurisdiction") references "public"."jurisdiction"("id") on update cascade on delete cascade;
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 25, 2019 at 05:33 PM -- Server version: 10.1.40-MariaDB -- PHP Version: 7.3.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 09 Agu 2019 pada 11.22 -- Versi server: 10.1.38-MariaDB -- Versi PHP: 7.3.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SE...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 1192.168.3.11 -- Generation Time: Jul 12, 2021 at 12:48 PM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.3.20 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_...
<gh_stars>0 ALTER TABLE `oa_refund` CHANGE `status` `status` enum('draft','wait','doing','pass','reject','finish') NOT NULL DEFAULT 'wait'; ALTER TABLE `cash_trade` CHANGE `type` `type` enum('in','out','transferin','transferout','invest','redeem') NOT NULL; ALTER TABLE `sys_category` CHANGE `major` `major` enum('0','1'...
<filename>SQL DATA BASE SCRIPT.sql ---SCRIPT MYSQL 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='TRADITIONAL,ALLOW_INVALID_DATES'; CREATE SCHEMA IF NOT EXISTS `mydb` DEFAULT CHARACTER SET u...
<reponame>ray1888/go-leetcode select Email from Person group by Email having count(Person.Email) > 1
<filename>devenv/sqlinit/11-SeedUserSessionsTable.sql<gh_stars>10-100 USE `dalamud`; INSERT INTO `users_sessions` (id, user_id, session, last_active, site) VALUES ( '00000000-0000-0000-0000-000000000000', '00000000-0000-0000-0000-000000000000', 'xxxxxxxxxxxxxxxxxxxxxxxx', 1638144268, 'MOGBOARD' );
<gh_stars>1-10 /** * Author: Fathoni * Created: Feb 13, 2017 */ /* Jumlah Semua Data */ SELECT count(*) as jumlah FROM mahasiswa m JOIN pengguna p ON p.id_pengguna = m.id_pengguna JOIN program_studi ps ON ps.id_program_studi = m.id_program_studi JOIN perguruan_tinggi pt on pt.id_perguruan_tinggi = p.id_perguruan_t...
<filename>datasharing/data_share_create.sql<gh_stars>1-10 --SETUP SECURE VIEWS TO SHARE --see datasharing/dimensional_secure/__install_dimensional_secure.sql -- CREATE SHARE USE ROLE ACCOUNTADMIN; CREATE OR REPLACE SHARE Z2S_SHARE; --GRANT PRIVILEGES TO SHARE USE DATABASE PC_FIVETRAN_DB; USE SCHEMA SALESFORCE_Z2S; GR...
SET search_path = users; CREATE TABLE oauth ( id bigserial NOT NULL, uuid uuid PRIMARY KEY REFERENCES users.auth (uuid) MATCH FULL ON DELETE NO ACTION, provider text NOT NULL, access_token varchar(40) NOT NULL, refresh_token varchar(40) NOT NULL, expiry_date timestamp NOT NULL, updated_at timestamptz NOT...
USE [ANTERO] GO IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sa].[sa_oiva_maaraykset]') AND type in (N'U')) ALTER TABLE [sa].[sa_oiva_maaraykset] DROP CONSTRAINT IF EXISTS [DF__sa_oiva_maaraykset__loadtime] GO IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[sa].[sa_oiva_maar...
-- Name: attendees attendees_attendee_source_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public.attendees ADD CONSTRAINT attendees_attendee_source_id_fkey FOREIGN KEY (attendee_source_id) REFERENCES public.attendees_sources(id) ON UPDATE CASCADE ON DELETE CASCADE; --
<reponame>rahul-thrymr/shoppingKart<filename>conf/evolutions/default/1.sql # --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table cart_details ( id bigserial not null, customer_id bigint, product...
SELECT 'ddl test';
/* Navicat Premium Data Transfer Source Server : 科海健康 Source Server Type : MySQL Source Server Version : 50718 Source Host : rm-bp1e5wj1225x3b702o.mysql.rds.aliyuncs.com Source Database : dbgirl_cluster Target Server Type : MySQL Target Server Version : 50718 File Encoding ...
SELECT 'Upgrading Sentry store schema from 1.4.0 to 1.4.0-cdh5' AS Status from dual; @001-SENTRY-327.oracle.sql; @002-SENTRY-339.oracle.sql; @003-SENTRY-380.oracle.sql; @004-SENTRY-BUGFIX.oracle.sql; UPDATE SENTRY_VERSION SET SCHEMA_VERSION='1.4.0-cdh5', VERSION_COMMENT='Sentry release version 1.4.0-cdh5' WHERE VER_ID...
DROP TABLE "T_NULL_LINK_DEMO_SRC"; DROP TABLE "T_NULL_LINK_DEMO_DEST"; CREATE TABLE "T_NULL_LINK_DEMO_SRC" ( "ID" VARCHAR2(256 BYTE) NOT NULL, "VALUE" VARCHAR2(256 BYTE) NOT NULL, "DEST_BIZ_KEY" VARCHAR2(256 BYTE), CONSTRAINT "T_NULL_LINK_DEMO_SRC_PK" PRIMARY KEY ("ID") USING INDEX ENABLE ) TABLESPACE "USERS" ...
INSERT INTO OBJECT_REFERENCE VALUES ('1', 'Company1', 'System1', 'Instance1', 'Type1', 'Value1'); INSERT INTO OBJECT_REFERENCE VALUES ('2', 'Company2', 'System2', 'Instance2', 'Type2', 'Value2'); INSERT INTO OBJECT_REFERENCE VALUES ('3', 'Company3', 'System3', 'Instance3', 'Type3', 'Value3');
SELECT COUNT(*) FROM KNOWLEDGES WHERE DELETE_FLAG = 0;
<filename>openGaussBase/testcase/SQL/INNERFUNC/octet_length/Opengauss_Function_Innerfunc_Octet_length_Case0006.sql<gh_stars>0 -- @testpoint: octet_length函数输入值为中文类型 SELECT octet_length('士大夫精神的考虑');
SELECT concat_ws(' ', a.first_name, a.last_name) nombre, group_concat(b.first_name, ' ', b.last_name) sameName FROM sakila.actor a JOIN actor b ON (a.last_name = b.last_name AND a.actor_id != b.actor_id) GROUP BY a.actor_id ORDER BY a.last_name ;
drop table if exists inventory_entry; drop table if exists item; drop table if exists report; drop table if exists survivor; drop type if exists gender; create type gender as enum('MALE', 'FEMALE', 'OTHER'); create table survivor( id bigserial primary key, name varchar(50) not null, age smallint not null, gend...
-- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Aug 11, 2017 at 05:42 PM -- Server version: 5.7.19-0ubuntu0.16.04.1 -- PHP Version: 7.0.19-1+deb.sury.org~xenial+2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET...
<filename>PostgreSQL-Queries/Solving Mystery/suspected_rides_looking_for_riders_quering_view.sql SELECT DISTINCT vehicle_id, "name" "rider_name", address FROM suspected_rides sr INNER JOIN "public"."rides" r ON sr.ride_id = r.id INNER JOIN "public"."users" u ON r.rider_id = u.id;
<reponame>szualang/gf-demos<gh_stars>1-10 CREATE TABLE `user` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '用户ID', `passport` varchar(45) NOT NULL COMMENT '账号', `password` varchar(45) NOT NULL COMMENT '密码', `nickname` varchar(45) NOT NULL COMMENT '昵称', `create_time` timestamp NOT NULL COMMENT '创建时间...
USE [BuyGrandAdministratorReadReplica] GO /****** Object: StoredProcedure [dbo].[sp_viewFeedbacks] Script Date: 4/12/2020 4:23:06 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ============================================= -- Author: <<NAME>> -- Create date: <2020/04/12> -- Description: <Procedure ...
<filename>MS SQL/05.Subqueries and JOINs/SoftUniSolution.sql USE [SoftUni] GO ---Task 01: Employee Address SELECT TOP(5) e.[EmployeeID], e.[JobTitle], e.[AddressID], a.[AddressText] FROM [Employees] AS e INNER JOIN [Addresses] AS a ON e.[AddressID]...
CREATE DATABASE IF NOT EXISTS `b3log_symphony` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
<filename>C#Development/Database/DatabasesBasics/03.BasicCRUD/Georaphy/GeographyQuery1.sql -- 22. All Mountain Peaks SELECT PeakName FROM Peaks ORDER BY PeakName ASC -- 23. Biggest Countries by Population SELECT TOP (30) CountryName, [Population] FROM Countries WHERE ContinentCode = 'EU' ORDER BY [Population]...
<reponame>nbuy/legacy<filename>html/modules/profile/sql/mysql.sql CREATE TABLE `{prefix}_profile_data` ( `uid` mediumint(8) unsigned NOT NULL, PRIMARY KEY (`uid`) ) ENGINE=MyISAM; CREATE TABLE `{prefix}_profile_definitions` ( `field_id` smallint(5) unsigned NOT NULL auto_increment, `field_name` varchar...
create table emp15(id int, name varchar(50), salary int); insert into emp15 values (1, 'a', 10000); insert into emp15 values (2, 'b', 20000); insert into emp15 values (3, 'c', 30000); insert into emp15 values (4, 'd', 15000); insert into emp15 values (5, 'e', 18000); create table emp10(id int, name varchar(50), age ...
CREATE PROCEDURE [dbo].[DsmrApi_SelectAverageEnergyDataPerHour] @sensorId INT, @start DATETIME, @end DATETIME AS BEGIN SELECT DATEPART(HOUR, [Timestamp]) as [Hour], AVG([PowerUsage]) AS [AveragePowerUsage], AVG([PowerProduction]) AS [AveragePowerProduction], AVG([GasFlow]) * 60.0 * 1000.0 AS [Averag...
with segment_tracks as ( select * from {{ ref('segment_tracks') }} ), segment_universal_user_id as ( select * from {{ ref('segment_universal_user_id') }} ), mapped_tracks as ( select coalesce(a.user_id, b.universal_alias) as universal_alias, a.* from segment_tracks a left j...
<gh_stars>1-10 -- Copyright 2016-2017 Boundless, http://boundlessgeo.com -- -- 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 -- -- Unles...
<gh_stars>1-10 -- Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; version 2 of the License. -- -- This program is dis...
<reponame>PNNL-Comp-Mass-Spec/DBSchema_DMS /****** Object: View [dbo].[V_Requested_Run_Helper_List_Report] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE VIEW [dbo].[V_Requested_Run_Helper_List_Report] AS SELECT RR.ID AS Request, RR.RDS_Name AS Name, E.Experiment_Num AS Experi...
ALTER TABLE orgs DROP COLUMN enable_approvals;
-- this is a comment select * from projects where license = :#${body} and project in (:#in:names) order by id
-- -- PostgreSQL database dump -- -- Dumped from database version 12.4 -- Dumped by pg_dump version 12.4 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', fal...
<reponame>pdv-ru/ClickHouse DROP TABLE IF EXISTS grop_uniq_array_date; CREATE TABLE grop_uniq_array_date (d Date, dt DateTime, id Integer) ENGINE = Memory; INSERT INTO grop_uniq_array_date VALUES (toDate('2016-12-16'), toDateTime('2016-12-16 12:00:00'), 1) (toDate('2016-12-16'), toDateTime('2016-12-16 12:00:00'), 1); S...
<gh_stars>1-10 -- indicies DROP INDEX runs_id_unique_index; -- tables DROP TABLE invocations; DROP TABLE runs; DROP TABLE users; DROP TABLE __revision; -- sequences DROP SEQUENCE user_id_seq; DROP SEQUENCE run_id_seq; DROP SEQUENCE inv_id_seq; -- types DROP DOMAIN unsigned_integer;
<reponame>NCIP/catrip /*L Copyright Duke Comprehensive Cancer Center Distributed under the OSI-approved BSD 3-Clause License. See http://ncip.github.com/catrip/LICENSE.txt for details. L*/ INSERT INTO BREAST_NOTT_HISTOPATH_GRADES ( ID, TUBULE_FORMATION, NUCLEAR_PLEOMORPHISM, MITOTIC_COUNT, TOTAL_SCORE, TOTAL_SC...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Nov 26, 2019 at 05:17 PM -- Server version: 5.7.26-0ubuntu0.18.04.1-log -- PHP Version: 7.3.6-1+ubuntu18.04.1+deb.sury.org+1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START T...
-- Create sql tables here --
<reponame>3A532055/11111<gh_stars>0 -- Adminer 4.3.1 MySQL dump SET NAMES utf8; SET time_zone = '+00:00'; SET foreign_key_checks = 0; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; SET NAMES utf8mb4; DROP TABLE IF EXISTS `comments`; CREATE TABLE `comments` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `post_id` int(...
/* SQLyog Ultimate v11.11 (64 bit) MySQL - 5.5.5-10.1.21-MariaDB : Database - hospital ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FO...
<filename>AssetForecast/sqlcontent.sql<gh_stars>0 SELECT STARTDATE, VALUE, VALUECHANGE, VALUECHANGERATE FROM ASSETS;
create database IF NOT EXISTS ipc_master1
CREATE TABLE recipes_nestings ( id INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY, recipe_id INTEGER NOT NULL, includes_recipe_id INTEGER NOT NULL, row_created_timestamp DATETIME DEFAULT CURRENT_TIMESTAMP, UNIQUE(recipe_id, includes_recipe_id) ); CREATE VIEW recipes_nestings_resolved AS WITH RECURSIVE r1(recipe_id,...
insert into Parameters(name) values ('Parameter1'), ('Parameter2'); insert into Events(id, logId, start, stop) values ('1', '1', '0', '2'), ('2', '1', '1', '5'); insert into Test (idTime,value1) values ('0','0.09983341664682815'),('1','0.19866933079506122'),('2','0.2955202066613396'),('3','0.3894183423086505'),('4','...
/*inserindo dados - INSIRA NA TABELA pessoas (.........) OS VALORES*/ insert into pessoas (nome, nascimento, sexo, peso, altura) values ('<NAME>', '1999-04-29', 'm', '60.5', '1.68'); /*Selecione(select) Tudo(*) De(from) pessoas*/ select*from pessoas; /*Deletando um registro na tabela*/ delete from pessoas where id=4;...
SELECT products.name, providers.name FROM products, providers WHERE products.id_providers = providers.id AND products.id_categories = 6
<gh_stars>0 -- COMP3311 12s1 Exam Q2 -- The Q2 view must have one attribute called (player,goals) drop view if exists Q2; create view Q2 as select p.name as player, foo.goals from (select scoredby as player, count(scoredby) as goals from goals where rating = 'amazing' group by scoredby having count(scoredby) > 1 ) a...
<reponame>madgik/mip-algorithms requirevars 'defaultDB' 'input_global_tbl'; attach database '%{defaultDB}' as defaultDB; --var 'input_global_tbl' 'defaultDB.localResult'; --DELETE drop table if exists histresult; create table histresult as select colname0, id0, minvalue0, maxvalue0, colname1, id1,val, sum(...
ALTER TABLE `profiles` DROP FOREIGN KEY `profiles_account_id_accounts_fk`;
CREATE USER SCOTT IDENTIFIED BY tiger DEFAULT TABLESPACE "USERS" TEMPORARY TABLESPACE "TEMP"; -- ROLES GRANT "SELECT_CATALOG_ROLE" TO SCOTT ; GRANT "CONNECT", "RESOURCE" TO SCOTT ; -- SYSTEM PRIVILEGES GRANT SELECT ANY DICTIONARY TO SCOTT; CREATE TABLE SCOTT.CATEGORIES ( ID NUMBER(9), NAME NVARCHAR2(255) NOT NU...
USE `ridgepole_test`; DROP TABLE IF EXISTS `clubs`; CREATE TABLE `clubs` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`id`), UNIQUE KEY `idx_name` (`name`) ); DROP TABLE IF EXISTS `departments`; CREATE TABLE `departments` ( `dept_no` char(4) NOT NULL...
/******************************************************************* DECLARE @count INT ,@output INT = 0 ,@fieldName nvarchar(255) ,@syncDate DATETIME EXEC [dbo].[Chart_SoilNutrition] -- @companyguid = '415C8959-5BFC-4203-A493-F89458AE7736' --@entityguid = '415C8959-5BFC-4203-A493-F89458AE7736' @guid = '...
CREATE PROCEDURE [dbo].[GetWaybills] @LayoutId INT, @StationId INT = NULL, @MatchShadowYard BIT = 0, @Sending BIT = 1, @Receiving BIT = 1 AS BEGIN DECLARE @FromYear AS INT, @UptoYear AS INT SELECT @FromYear = L.FirstYear, @UptoYear = L.LastYear FROM Layout AS L WHERE L.Id = @LayoutId SELECT CCS.Layou...
-- file:create_table_like.sql ln:148 expect:true SELECT oid FROM like_test3
CREATE TABLE IF EXISTS activities;
<reponame>YuriyGorvitovskiy/statemach-data<filename>src/test/resources/org/statemach/db/sql/postgres/CreateForeignKeysFirst.sql ALTER TABLE ${0}.first ADD CONSTRAINT fk_first_second FOREIGN KEY (second) REFERENCES ${0}.second (id) , ADD CONSTRAINT fk_first_third FOREIGN KEY (third_name, third...
ALTER TABLE SecurityPersonSeries ADD CONSTRAINT FK_SecurityPersonSeries_SeriesID FOREIGN KEY (SeriesID) REFERENCES Series (SeriesID), CONSTRAINT FK_SecurityPersonSeries_PersonID FOREIGN KEY (PersonID) REFERENCES Person (PersonID)
<filename>src/main/resources/db/migration/V06__populate_role_for_admin.sql insert into "users" ("name", "token") values ('admin123', '<PASSWORD>'); insert into "roles" ("name") values ('ADMIN'); insert into "users_roles" ("user_id", "role_id") values ( (select u."id" from "users" u where u."name" = 'admin123'), ...
<reponame>Henryrjung/12_employee_database DROP DATABASE IF EXISTS employee_db; CREATE DATABASE employee+db; USE employee_dbl CREATE TABLE department( id INT AUTO_INCREMENT NOT NULL, name VARCHAR(30) NOT NULL, PRIMARY KEY (id) ); CREATE TABLE role( id INT AUTO AUTO_INCREMENT NOT NULL, title VARCHA...
DROP TABLE PERSON DROP SEQUENCE ID
<gh_stars>0 -- SPDX-License-Identifier: Apache-2.0 -- Licensed to the Ed-Fi Alliance under one or more agreements. -- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. -- See the LICENSE and NOTICES files in the project root for more information. PRINT N'Creating primary key [StudentS...
<reponame>ge-enrique-cano/uaa ALTER TABLE identity_zone ADD COLUMN active BOOLEAN NOT NULL DEFAULT true;
define mw_prefix='{$wgDBprefix}'; CREATE INDEX &mw_prefix.recentchanges_i08 ON &mw_prefix.recentchanges (rc_namespace, rc_type, rc_patrolled, rc_timestamp);
-- @testpoint:openGauss保留关键字except作为作为表空间名,不带引号,合理报错 drop tablespace if exists except; CREATE TABLESPACE except RELATIVE LOCATION 'hdfs_tablespace/hdfs_tablespace_1'; --openGauss保留关键字except作为作为表空间名,加双引号,创建成功 drop tablespace if exists "except"; CREATE TABLESPACE "except" RELATIVE LOCATION 'hdfs_tablespace/hdfs_tablespa...
-- @testpoint:opengauss关键字nclob(非保留),作为表空间名 --关键字不带引号,创建成功 drop tablespace if exists nclob; CREATE TABLESPACE nclob RELATIVE LOCATION 'hdfs_tablespace/hdfs_tablespace_1'; drop tablespace nclob; --关键字带双引号,创建成功 drop tablespace if exists "nclob"; CREATE TABLESPACE "nclob" RELATIVE LOCATION 'hdfs_tablespace/hdfs_table...
CREATE PROCEDURE [dbo].[spProject_Update] @Name nvarchar(50), @Id int, @CategoryId int, @SubcategoryId int AS begin set nocount on; update Project set Name = @Name, CategoryId = @CategoryId, SubcategoryId = @SubcategoryId where Id = @Id; end
<reponame>nabeelkhan/Oracle-DBA-Life REM FILE NAME: cbo_stats.sql REM LOCATION: Application Tuning\Reports REM FUNCTION: Statistics used by Cost Base Optimizer REM TESTED ON: 8.1.5, 8.1.7, 9.0.1 REM PLATFORM: non-specific REM REQUIRES: REM REM This is a part of the Knowledge Xpert for Oracle Administration libr...
CREATE DATABASE IF NOT EXISTS `project` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */; USE `project`; -- MySQL dump 10.13 Distrib 8.0.19, for Win64 (x86_64) -- -- Host: localhost Database: project -- ------------------------------------------------------ --...
<reponame>jerfsonsilva/reservaHotel -- phpMyAdmin SQL Dump -- version 4.6.6deb5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: 03-Jun-2020 às 19:56 -- Versão do servidor: 5.7.28-0ubuntu0.18.04.4 -- PHP Version: 7.2.24-0ubuntu0.18.04.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone...
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 1172.16.17.32 -- Generation Time: Dec 17, 2018 at 03:19 PM -- Server version: 10.1.30-MariaDB -- PHP Version: 7.2.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET ...
select * from ( select klient,round(sum(KwotaSprzedazy),2) KwotaSprzedazy,rok from ( select sod.CustomerID klient,subtotal KwotaSprzedazy,YEAR(sod.orderdate) rok from sales.SalesOrderHeader sod ) as a group by klient,rok ) as p pivot (avg(KwotaSprzedazy) for rok in ([2012],[2013])) pvt order by klient
CREATE TABLE provider ( provider_id INTEGER NOT NULL , provider_name VARCHAR(255) NULL , NPI VARCHAR(20) NULL , DEA VARCHAR(20) NULL , specialty_concept_id INTEGER NULL , care_site_id INTEGER NULL , year_of_birth INTEGER NULL , gender_concept_id INTEGER NULL ...
<filename>database_structure.sql /*Table structure for table `epics` */ DROP TABLE IF EXISTS `epics`; CREATE TABLE `epics` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_bin NOT NULL, `description` varchar(500) COLLATE utf8_bin DEFAULT NULL, `color` varchar(10) COLLATE utf...
CREATE TABLE [school].[StudentInformation] ( [Id] INT NOT NULL PRIMARY KEY IDENTITY, [StudentNumber] VARCHAR(50) NULL, [Name] VARCHAR(50) NULL, [Surname] VARCHAR(50) NULL, [SemesterId] INT NULL, [UserId] INT NOT NULL, CONSTRAINT [FK_StudentInformation_SemesterInformation] FOREIGN KEY ([Se...
<reponame>vampyklauz/bnbkeeper -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jan 10, 2017 at 03:59 PM -- Server version: 10.1.13-MariaDB -- PHP Version: 5.5.34 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTE...
<reponame>med2rdf/icgc DROP TABLE specimen; CREATE TABLE specimen ( icgc_specimen_id VARCHAR2(255) NOT NULL, project_code VARCHAR2(255) DEFAULT NULL, study_specimen_involved_in VARCHAR2(255) DEFAULT NULL, submitted_specimen_id VARCHAR2(255) DEFAULT NULL, icgc_donor_id VARCHAR2(255) DEFAULT NULL, submitted_d...
-- Database: stockmarket -- DROP DATABASE stockmarket; CREATE DATABASE stockmarket WITH OWNER = postgres ENCODING = 'UTF8' LC_COLLATE = 'Portuguese_Brazil.1252' LC_CTYPE = 'Portuguese_Brazil.1252' TABLESPACE = pg_default CONNECTION LIMIT = -1; -- Table: public.tstock -- DROP TABLE ...
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 5.1.63-community - MySQL Community Server (GPL) -- Server OS: Win64 -- HeidiSQL version: 7.0.0.4053 -- Date/time: 2012-10-14 17:59:15 ...
<reponame>dram/metasfresh -- 2019-10-10T12:53:30.287Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Table (AccessLevel,ACTriggerLength,AD_Client_ID,AD_Org_ID,AD_Table_ID,CopyColumnsFromTable,Created,CreatedBy,EntityType,ImportTable,IsActive,IsAutocomplete,IsChangeLog,IsDeleteable,IsDL...
<filename>warehouse/models/data_marts/okr/facts/fct__user_created_key_result_check_ins.sql with users as ( select * from {{ ref('dim__user') }} ), key_result_check_in as ( select * from {{ ref('dim__key_result_check_in') }} ), final as ( select users.id as user_id, key_result_check_i...
<reponame>gaelrenoux/darwin<gh_stars>1-10 # --- !Up This is an up # !Define value This is a define #! !Down This is a down with a ${value} #! !Up Something else This is another up with a ${value} and the same ${value} #--- !Down # This is another down #!Define stuffAgain_2! and again This is another define with ${...
<reponame>mrandi/fullstop INSERT INTO fullstop_data.violation_type ( id, help_text, violation_severity, title, created, created_by, version) VALUES ('UNSECURED_ROOT_USER', 'The root user has an active secret key or MFA is not active', 4, 'Unsecured root user', now(), ...
# forms schema change # --- !Ups ALTER TABLE forms ADD post_status SMALLINT(3) NULL AFTER ref; UPDATE forms AS f, arrivals AS arr, arrivals_copy AS arrcpy SET f.post_status = CAST(arrcpy.post_status AS UNSIGNED) WHERE arr.arrival_id = arrcpy.arrival_id AND f.arrival_id = arr.id; # --- !Downs ALTER TABLE forms DROP...
IF OBJECT_ID('@results_schema.pathway_analysis_codes', 'U') IS NULL CREATE TABLE @results_schema.pathway_analysis_codes ( pathway_analysis_generation_id BIGINT NOT NULL, code BIGINT NOT NULL, name VARCHAR(2000) NOT NULL, is_combo int NOT NULL ); IF OBJECT_ID('@results_schema.pathway_analysis_paths', 'U') IS NULL C...
<reponame>nenadnoveljic/tpt-oracle<gh_stars>100-1000 -- sqlmon.sql -- -- Copyright 2015 Gluent Inc. All rights reserved -- -- Backup sqlplus session settings... -- ------------------------------------------------------------------------------------------ set termout off store set sqlplus_session_settings.sql r...
/* ################################################################################ Increase column sizes for unpublished tables author: <NAME> date: 11 June 2020 version: 2.5.0.001 ################################################################################ */ ALTER TABLE BODY_OF_WORK MODIFY (JOURNAL VARCHA...
<filename>app_template(2).sql -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 17, 2019 at 06:59 AM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone =...
<filename>teacher-manage-backend/src/main/resources/sql/teacher.sql<gh_stars>1-10 /* Navicat MySQL Data Transfer Source Server : mariadb Source Server Version : 50505 Source Host : localhost:3306 Source Database : ourschool Target Server Type : MYSQL Target Server Version : 50505 File Encod...
<gh_stars>0 -- @testpoint: circle类型,使用<(x,y),r>方式插入空坐标值(圆心),合理报错 drop table if exists test_circle05; create table test_circle05 (name circle); insert into test_circle05 values (circle '<(null,null),2>'); drop table test_circle05;
<filename>uchicago/db/hw07/procedures.sql DELIMITER | CREATE PROCEDURE showSelectedCourses( IN student_email varchar(20)) BEGIN SELECT C.code, C.title FROM Enroll E, Course C WHERE E.course_id = C.id AND E.student_email = student_email; END | CREATE PROCEDURE findUnregisteredStudents() BEGIN S...