sql
stringlengths
6
1.05M
<gh_stars>1-10 CREATE PROCEDURE [dbo].[dnn_DeleteServer] @ServerID int AS DELETE FROM dbo.dnn_WebServers WHERE ServerID=@ServerID
<gh_stars>1-10 ---------------------------------- ---------------------------------- DROP TABLE locacoes; DROP TABLE clientes; DROP TABLE locadoras; DROP TABLE usuario; DROP TABLE papel; ---------------------------------- ---------------------------------- CREATE TABLE clientes ( id INTEGER NOT NULL GENERAT...
<filename>packages/w3af/w3af/core/controllers/ci/helpers/set_root_password.sql USE mysql; UPDATE user set password=PASSWORD("<PASSWORD>") where User='root'; FLUSH privileges;
<gh_stars>1-10 SELECT contests.contest_id, contests.hacker_id, contests.name, SUM(total_submissions), SUM(total_accepted_submissions), SUM(total_views), SUM(total_unique_views) FROM contests JOIN colleges ON contests.contest_id = colleges.contest_id JOIN challenges ...
-- file:arrays.sql ln:257 expect:true SELECT array_cat(ARRAY[[3,4],[5,6]], ARRAY[1,2]) AS "{{3,4},{5,6},{1,2}}"
<gh_stars>0 select * from public.employees where first_name ='Hercules' and last_name like 'B%'
<filename>My employees schemata.sql<gh_stars>0 CREATE TABLE department ( dept_no varchar(10) NOT NULL, dept_name varchar(30) NOT NULL, CONSTRAINT pk_department PRIMARY KEY ( dept_no ) ); CREATE TABLE dept_emp ( emp_no int NOT NULL, dept_no varchar(10) NOT NULL ); CREATE TAB...
<reponame>VU-libtech/OLE-INST TRUNCATE TABLE OLE_PUR_PO_TYP_T DROP STORAGE / INSERT INTO OLE_PUR_PO_TYP_T (OLE_PO_TYPE_ID,OLE_PO_TYPE,VER_NBR,OBJ_ID,ROW_ACT_IND,DESC_TXT) VALUES (1.0,'Firm, Fixed',1.0,'OLE1','Y','Firm orders are commitments from a library to purchase a quantity of a title from a provider. Once all q...
--<snippetOCSv2_SQL_SyncSamplesSetupPeer> -- -- Create databases for the Sync Services peer synchronization samples. -- Enable snapshot isolation, which is recommended for databases that -- participate in sychronization. -- USE master GO IF EXISTS (SELECT [name] FROM [master].[sys].[databases] WHERE [...
-- Exported from QuickDBD: https://www.quickdatabasediagrams.com/ -- Link to schema: https://app.quickdatabasediagrams.com/?state=bfhtay2bl8i&code=4%2FwQFg7U_mkE3MSRvhD3xckf8gitN4g_xg2QQQZM3uvvpu5FnJuSvSetIv9a_7D1C5Q4eNhhlWYB8eLCbQ7hUs-Y4&scope=email+profile+openid+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.pro...
CREATE TABLE `empregadoAssalariado` ( `codigo` int(11) NOT NULL AUTO_INCREMENT, `nome` varchar(45) DEFAULT NULL, `sobrenome` varchar(45) DEFAULT NULL, `cpf` varchar(45) DEFAULT NULL, `sexo` varchar(45) DEFAULT NULL, `salarioMensal` decimal(10,2) DEFAULT NULL, PRIMARY KEY (`codigo`) ) ENGINE=InnoDB AUTO_...
{% macro dbt_trino_validate_get_incremental_strategy(raw_strategy) %} {#-- Validate the incremental strategy #} {% set invalid_strategy_msg -%} Invalid incremental strategy provided: {{ raw_strategy }} Expected one of: 'append', 'insert_overwrite' {%- endset %} {% if raw_strategy not in ['append', 'in...
insert into security_permission (security_permission_id, created_on_date, last_updated_date, description) values ('EDIT_USER', timestamp 'now', timestamp 'now', 'Edit an existing user in the system'); insert into security_group_security_permission (security_group_id, security_permission_id) select sg.security_...
<reponame>MarkMacArdle/dbt-utils {% macro right(string_text, length_expression) -%} {{ adapter.dispatch('right', packages = dbt_utils._get_utils_namespaces()) (string_text, length_expression) }} {% endmacro %} {% macro default__right(string_text, length_expression) %} right( {{ string_text }}, ...
CREATE FUNCTION func516() RETURNS integer LANGUAGE plpgsql AS $$ DECLARE val INTEGER; BEGIN val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE425);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE315);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE337);val:=(SELECT COUNT(*)INTO MYCOU...
SELECT 'Upgrading MetaStore schema from 0.7.0 to 0.8.0'; \i 008-HIVE-2246.postgres.sql; \i 009-HIVE-2215.postgres.sql; SELECT 'Finished upgrading MetaStore schema from 0.7.0 to 0.8.0';
-- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 27, 2018 at 07:25 PM -- Server version: 10.1.32-MariaDB -- PHP Version: 7.2.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
<filename>demo/CaretRegressor_svmLinear_pca/diabetes/mysql/demo3_caret_CaretRegressor_svmLinear_pca_mysql.sql -- This SQL code was generated by sklearn2sql (development version). -- Copyright 2018 -- Model : CaretRegressor_svmLinear_pca -- Dataset : diabetes -- Database : mysql -- This SQL code can contain one or mo...
<filename>sql/_27_banana_qa/issue_5765_timezone_support/_04_existing_functions/_02_type_casting_functions/_02_to_char/cases/_13_ko_KR_euckr_ts_constant.sql --test to_char function with TIMESTAMP(L)TZ constant values, with ko_KR language + session variables --+ holdcas on; set system parameters 'tz_leap_second_support=y...
/* Navicat MySQL Data Transfer Source Server : 127.0.0.1 Source Server Version : 50637 Source Host : localhost:3306 Source Database : test Target Server Type : MYSQL Target Server Version : 50637 File Encoding : 65001 Date: 2020-11-15 14:59:09 */ SET FOREIGN_KEY_CHECKS=0; -- ----...
<reponame>pranav-firake/DBMS-Project-for-Vehicle-licensing-and-registering<gh_stars>0 CREATE DATABASE IF NOT EXISTS `performance_schema` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `performance_schema`; -- MySQL dump 10.13 Distrib 5.5.16, for Win32 (x86) -- -- Host: localhost Database: performance_schema -- ------...
<reponame>popsbear1/TollKapitLang -- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Jul 19, 2018 at 02:21 AM -- Server version: 5.7.21 -- PHP Version: 5.6.35 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone ...
<reponame>AE9999/vpn-flight-checker -- -- 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; -- -- Name: postgres; Type: COMMENT; Schema: -; Owner: postgr...
<filename>codmonitoring.sql<gh_stars>0 /* SQLyog Ultimate v12.09 (64 bit) MySQL - 5.1.41 : Database - cod_monitoring ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHEC...
<filename>banco de dados/dbpaciente.sql -- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Tempo de geração: 26-Maio-2021 às 22:26 -- Versão do servidor: 10.4.11-MariaDB -- versão do PHP: 7.4.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; S...
CREATE PROCEDURE Yammer_Update_DownloadCompletion (@Year NVARCHAR(10)) AS BEGIN IF((SELECT COUNT(1) FROM YM_EXPORTDETAILS WHERE STARTDATE >= @Year +'-01-01 00:00:00.000' and enddate <= @Year +'-12-31 23:59:59.000' AND ((Status ='In Progress' or Status ='Stopped'))) = 0 ) BEGIN IF((SELECT COUNT(1) FROM YM_EXPORTDE...
<reponame>jianjustin/member-authority-system /* Navicat Premium Data Transfer Source Server : 本地数据库 Source Server Type : MySQL Source Server Version : 50168 Source Host : localhost:3306 Source Schema : member Target Server Type : MySQL Target Server Version : 50168 File Encodi...
drop table if exists user_profiles;
select count(1) as x from name_list ;
source operation.sql source tweet_dummy1.sql source tweet_dummy2.sql source tweet_dummy3.sql source tweet_key.sql source tweet.sql
<gh_stars>0 --Charles3379 Diagnoses SELECT fp.Coid AS HospID ,Substr(Cast(Cast(Trim(OTranslate(reg.Medical_Record_Num,'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' ,'')) AS INTEGER) + 135792468 + Cast(fp.Coid AS INTEGER) + 1000000000000 AS CHAR(13)),2,12) AS PtID ,Cast((reg.Patient_DW_ID (Format '999999999...
<reponame>frederickm13/data-science<filename>ClimateChangeAnalysis/sql/Scripts/RevokeUser.sql<gh_stars>0 REVOKE ALL PRIVILEGES ON ALL TABLES IN SCHEMA <schema> FROM <user>; REVOKE CONNECT ON DATABASE <database> FROM <user>; DROP USER <user>;
<filename>MIMIR/SEIDR/Tables/JobExecutionError.sql CREATE TABLE [SEIDR].[JobExecutionError] ( [LogID] INT IDENTITY (1, 1) NOT NULL, [JobExecutionID] BIGINT NOT NULL, [StepNumber] SMALLINT NOT NULL, [JobProfile_JobID] INT NULL, [ThreadID] ...
<gh_stars>1-10 update eg_wf_matrix set currentdesignation='Commissioner',nextstate='Commissioner Approved', nextaction='Digital Signature Pending',nextstatus='Digital Signature Pending',nextDesignation='Commissioner' where currentstate='Payment done against Estimation'; update eg_wf_matrix set currentstate='Di...
CREATE TABLE users ( id INT AUTO_INCREMENT PRIMARY KEY, fname VARCHAR(100) NOT NULL, lname VARCHAR(100) NOT NULL, email VARCHAR(200) UNIQUE NOT NULL, password VARCHAR(255) NOT NULL, salt VARCHAR(255) NOT NULL, created_at TIMESTAMP DEFAULT NOW() ); CREATE TABLE products ( id INT AUTO_INCREMENT PRIMARY K...
<gh_stars>1-10 -- MySQL dump 10.13 Distrib 8.0.22, for Win64 (x86_64) -- -- Host: localhost Database: spo -- ------------------------------------------------------ -- Server version 5.7.31 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESU...
CREATE TABLE IF NOT EXISTS schema.repos ( id text PRIMARY KEY, spdx character varying(12) NOT NULL, slug text NOT NULL, createdat timestamp NOT NULL, description text, primarylanguage text, branch text, commits bigint NOT NULL, asof timestamp NOT NULL DEFAULT date_trunc('second', cur...
<reponame>windwiny/Oracle-DBA-tips-scripts<filename>sql/mts_dispatcher_status.sql -- +----------------------------------------------------------------------------+ -- | <NAME> | -- | <EMAIL> | -- | ...
<gh_stars>0 # --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table address ( id bigint auto_increment not null, street1 varchar(255), street2 varchar(255), tow...
CREATE TABLE `be_Blogs` ( `BlogRowId` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `BlogId` varchar(36) NOT NULL DEFAULT '', `BlogName` varchar(255) NOT NULL DEFAULT '', `Hostname` varchar(255) NOT NULL DEFAULT '', `IsAnyTextBeforeHostnameAccepted` tinyint(1) NOT NULL DEFAULT 1, `StorageContainerName` varchar...
<filename>EdFi.Ods.Utilities.Migration/Scripts/MsSql/02Upgrade/v25_to_v31/11 Create Constraints/42660 StudentLearningObjectiveGeneralStudentProgramAssociation [PK, IX, D].sql<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 ...
{% macro dbt_snowflake_validate_get_incremental_strategy(config) %} {#-- Find and validate the incremental strategy #} {%- set strategy = config.get("incremental_strategy", default="merge") -%} {% set invalid_strategy_msg -%} Invalid incremental strategy provided: {{ strategy }} Expected one of: 'merge'...
<reponame>jrharalson/almanac.httparchive.org<gh_stars>0 #standardSQL # 20.01 - Adoption of HTTP/2 by site and requests SELECT client, firstHtml, JSON_EXTRACT_SCALAR(payload, '$._protocol') AS http_version, COUNT(0) AS num_requests, ROUND(COUNT(0) * 100 / SUM(COUNT(0)) OVER (PARTITION BY client), 2) AS pct FRO...
-- Sa se creeze o tabela denumita ANG_BLAKE care sa contina toti -- angajatii veniti in firma in alt an decat seful cu cei mai multi subordonati. -- Structura tabelei este urmatoarea: -- Nume_angajat, -- Den_departament, -- An_angajare, -- Ani_vechime -- Vechimea se va calcula ca si numar natural. -- Pentru testa...
<gh_stars>0 /* Navicat MySQL Data Transfer Source Server : root Source Server Version : 50724 Source Host : localhost:3306 Source Database : test Target Server Type : MYSQL Target Server Version : 50724 File Encoding : 65001 Date: 2019-07-30 11:02:09 */ SET FOREIGN_KEY_CHECKS=0; ...
DROP DATABASE IF EXISTS ordering_system; CREATE DATABASE ordering_system; \c ordering_system; CREATE TABLE IF NOT EXISTS profile ( id serial NOT NULL, user_id varchar(50) NOT NULL, abn varchar(50) NOT NULL, name varchar(50) NOT NULL, phone varchar(50), fax varchar(50), address varchar(50), suburb varchar(50),...
-- 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 [InterventionStudyLea...
<reponame>nareshgundla/benchmarksetup -- --Copyright (C) 2016 Transaction Processing Performance Council (TPC) and/or --its contributors. -- --This file is part of a software package distributed by the TPC. -- --The contents of this file have been developed by the TPC, and/or have been --licensed to the TPC under one o...
<filename>07_multi_user/imp/9/149.query.06.sql -- start query 6 in stream 0 using template query6.tpl select a.ca_state state, count(*) cnt from customer_address a ,customer c ,store_sales s ,date_dim d ,item i where a.ca_address_sk = c.c_current_addr_sk and c.c_customer_sk = s.s...
<reponame>ctdk/goiardi-schema -- Revert ltree_del_col BEGIN; DROP FUNCTION goiardi.delete_search_collection(col text, m_organization_id int); COMMIT;
<reponame>Caprowni/concourse ALTER TABLE checks ADD COLUMN span_context jsonb;
<gh_stars>100-1000 \set ON_ERROR_STOP 1 BEGIN; DROP TRIGGER IF EXISTS unique_primary_for_locale ON area_alias; DROP TRIGGER IF EXISTS unique_primary_for_locale ON artist_alias; DROP TRIGGER IF EXISTS unique_primary_for_locale ON event_alias; DROP TRIGGER IF EXISTS unique_primary_for_locale ON genre_alias; DROP TRIGGE...
<filename>modules/quadkey/bigquery/sql/TOCHILDREN.sql ---------------------------- -- Copyright (C) 2021 CARTO ---------------------------- CREATE OR REPLACE FUNCTION `@@BQ_PREFIX@@quadkey.TOCHILDREN` (quadint INT64, resolution INT64) RETURNS ARRAY<INT64> DETERMINISTIC LANGUAGE js OPTIONS (library=["@@BQ_LIBRARY_BUCKE...
<filename>openGaussBase/testcase/KEYWORDS/cast/Opengauss_Function_Keyword_Cast_Case0033.sql<gh_stars>0 -- @testpoint:openGauss保留关键字Cast作为视图名 --不带引号-合理报错 CREATE or replace VIEW Cast AS SELECT * FROM pg_tablespace WHERE spcname = 'pg_default'; --加双引号-创建成功 CREATE or replace VIEW "Cast" AS SELECT * FRO...
--========================================================================================================================== -- CIVILIZATIONS --========================================================================================================================== -- Types ------------------------------------- INSER...
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 1172.16.58.3 -- Generation Time: Dec 11, 2018 at 10:20 PM -- Server version: 10.1.36-MariaDB -- PHP Version: 7.2.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET ...
<reponame>LilianePaixao/novos-titas<filename>exercicio15/Cientistas.sql -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: dbMysql -- Tempo de geração: 08/04/2022 às 18:20 -- Versão do servidor: 8.0.28 -- Versão do PHP: 7.4.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; S...
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50553 Source Host : 127.0.0.1:3306 Source Database : zhuangxiu Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2019-05-22 17:14:44 */ SET FOREIGN_KEY_CHECKS=0; --...
CREATE TABLE contact ( contact_system_code varchar(16) NOT NULL, contact_id integer NOT NULL GENERATED BY DEFAULT AS IDENTITY, first_name varchar(16) NOT NULL, last_name varchar(16) NOT NULL, status varchar(1) NOT NULL DEFAULT 'A', created_at timestamp NULL DEFAULT CURRENT_TIMESTAMP, modified_at timestamp NULL D...
<reponame>sujon67/eas -- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Dec 05, 2016 at 03:28 AM -- Server version: 5.7.16-0ubuntu0.16.04.1 -- PHP Version: 7.0.8-0ubuntu0.16.04.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; ...
CREATE FUNCTION udf_ExamGradesToUpdate(@studentId INT, @grade DECIMAL(15, 2)) RETURNS NVARCHAR(MAX) BEGIN DECLARE @validateStudentId INT = (SELECT Id FROM Students WHERE @studentId = Id) IF(@validateStudentId IS NULL) BEGIN RETURN 'The student with provided id does not exist in the school!' END IF(...
<reponame>davidrehbinder/learning-cypress CREATE TABLE IF NOT EXISTS users ( username TEXT NOT NULL UNIQUE, password <PASSWORD> NOT NULL ); CREATE TABLE IF NOT EXISTS posts ( id INTEGER NOT NULL UNIQUE, username TEXT NOT NULL, ...
-- ************************************************ -- * Name : <NAME> * -- * Class : 2IM3 * -- * Email : <EMAIL> * -- * Github : https://github.com/3imed-jaber * -- * Site : https://3imed-jaberi.com * -- ************************...
<filename>finance/egov/egov-collection/src/main/resources/db/migration/main/V20160211121536__collection_challansubledger_action.sql Insert into EG_ACTION ("id","name","url","queryparams","parentmodule","ordernumber","displayname","enabled","contextroot","version","createdby","createddate","lastmodifiedby","lastmodified...
<filename>MS SQL/Exams/Retake Exam - 11 August 2020/10.CountryRepresentative.sql<gh_stars>1-10 SELECT rankingQuery.CountryName ,rankingQuery.DisributorName FROM (SELECT c.[Name] AS CountryName ,d.[Name] AS DisributorName ,COUNT(i.Id) AS [Count] ,DENSE_RANK() OVER (PARTITION BY c.[Name] ORDER BY COUNT(i....
-- file:rules.sql ln:161 expect:true insert into rtest_t2 values (1, 21)
<filename>app/pipelines/load_data/load_ecommerce_data/customer/create_customer_table.sql --This table has information about the customer and its location. Use it to identify unique customers in the orders table and to find the orders delivery location. --At our system each order is assigned to a unique customer_id. --T...
/* ================================ Check Status of DWU Change ================================ This query will check the status of the DWU change for the specified database It will either return IN_PROGRESS or COMPMLETED Source: https://docs.microsoft.com/en-us/azure/sql-data-warehouse/what-is-a-data-wareho...
<filename>sentry-provider/sentry-provider-db/src/main/resources/004-SENTRY-74.derby.sql -- SENTRY-74 ALTER TABLE SENTRY_DB_PRIVILEGE ADD COLUMN COLUMN_NAME VARCHAR(4000); DROP INDEX SENTRYPRIVILEGENAME; CREATE UNIQUE INDEX SENTRYPRIVILEGENAME ON SENTRY_DB_PRIVILEGE ("SERVER_NAME",DB_NAME,"TABLE_NAME","COLUMN_NAME",URI,...
<reponame>bluthen/isadore_server CREATE INDEX account_idx_email_password ON account(email, password); CREATE INDEX account_idx_enabled ON account(enabled_p); CREATE INDEX account_session_idx_hd on account_session(hash, datetime); -- Unique emails for enabled accounts. CREATE UNIQUE INDEX account_uidx_email_enabled ON a...
<reponame>tomas-gl/Portfolio -- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Client : localhost -- Généré le : Ven 13 Avril 2018 à 12:16 -- Version du serveur : 5.7.21-0ubuntu0.16.04.1 -- Version de PHP : 7.0.28-0ubuntu0.16.04.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET ti...
CREATE TABLE `object_xref` ( `object_xref_id` int(11) NOT NULL auto_increment, `ensembl_id` int(10) unsigned NOT NULL default '0', `ensembl_object_type` enum('RawContig','Transcript','Gene','Translation','regulatory_factor','regulatory_feature') collate latin1_bin NOT NULL default 'RawContig', `xref_id` int(10)...
<gh_stars>0 IF (EXISTS (SELECT * FROM sys.all_columns WHERE name = 'MilestoneDate')) BEGIN EXEC sp_rename 'PatientMilestone.MilestoneDate', 'DateAssessed', 'COLUMN'; END
<filename>python/sql/Stored Procedures/dbo.sp_Community_u.sql SET QUOTED_IDENTIFIER ON GO SET ANSI_NULLS ON GO CREATE PROCEDURE [dbo].[sp_Community_u] @CM_ID [int] OUTPUT, @User_ID int, @AlternativeArea bit, @ParentCommunity [int], @ProvinceState [int], @ReasonForChange nvarchar(max), @Descriptions [xml], @Alt...
<reponame>ZhutaoCN1/APIJSON -- MySQL dump 10.13 Distrib 5.7.17, for macos10.12 (x86_64) -- -- Host: 172.16.17.32 Database: sys -- ------------------------------------------------------ -- Server version 5.7.19-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RES...
ALTER FUNCTION version() STABLE; ALTER FUNCTION request(index regclass, endpoint text, method text, post_data text) STABLE; ALTER FUNCTION index_name(index regclass) STABLE; ALTER FUNCTION index_url(index regclass) STABLE; ALTER FUNCTION index_type_name(index regclass) STABLE; ALTER FUNCTION index_mapping(index regclas...
<filename>src/main/resources/sql/donate.sql<gh_stars>1-10 drop table donate; create table donate( id bigint primary key not null, name character varying(50) not null, price integer not null, email character varying(50) not null ); insert into donate (id, name, price, email) values (1, '<NAME>', 30000, '<EMAIL>...
-- 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. CREATE TABLE [tracked_deletes_samplestudenttranspo...
-- -- UPDATABLE VIEWS -- -- check that non-updatable views and columns are rejected with useful error -- messages CREATE TABLE base_tbl (a int PRIMARY KEY, b text DEFAULT 'Unspecified'); INSERT INTO base_tbl SELECT i, 'Row ' || i FROM generate_series(-2, 2) g(i); CREATE VIEW ro_view1 AS SELECT DISTINCT a, b FROM bas...
<reponame>codeselfstudy/codeselfstudy_django -- This file runs in the Docker container if there isn't already a database -- there. See the Dockerfile. CREATE DATABASE codeselfstudy;
-- -- The contents of this file are subject to the license and copyright -- detailed in the LICENSE and NOTICE files at the root of the source -- tree and available online at -- -- http://www.dspace.org/license/ -- ----------------------------------------------------------------------------------- -- ADD field securit...
-- [er] create two index using same name create class ddl_0001(col1 int, col2 string, col3 char(10), col4 varchar(10), col5 object ); create index ddl_0001_index on ddl_0001(col1); create index ddl_0001_index on ddl_0001(col1,col2); drop class ddl_0001; rollback; rollback;
SELECT d.DivisionId ,d.DivisionName ,e.FirstName ,e.LastName FROM Divisions d LEFT JOIN Employees e ON e.DivisionID = d.DivisionID ORDER BY d.DivisionId ,e.LastName;
<reponame>Zan3Stoltz/CMPG311_Sasol_Database<gh_stars>0 CREATE TABLE Department ( Dep_ID NUMBER(10) CONSTRAINT PK_DEPARTMENT PRIMARY KEY, Dep_Name VARCHAR(50) NOT NULL, Dep_ContactNumber CHAR(12) UNIQUE NOT NULL ); CREATE TABLE Shift ( Shift_ID NUMBER(10) CONSTRAINT PK_SHIFT PRIMARY KEY, Shift_Descr...
<filename>src/inttest/resources/sql/prepVotingData.sql DELETE FROM winner_for_voting_question; DELETE FROM voting_answer; DELETE FROM vote; DELETE FROM voting_choice; DELETE FROM voting_question; DELETE FROM voting_subject; INSERT INTO voting_subject (id, subject_key, begin_of_vote_time, end_of_vote_time, min_games_to...
<gh_stars>0 alter table "public"."socle_subject" add column "group_id" bigint not null;
<reponame>chankl78/SSASoft # ************************************************************ # Sequel Pro SQL dump # Version 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 127.0.0.1 (MySQL 5.5.5-10.1.14-MariaDB) # Database: ssaportal # Generation Time: 2016-07-05 05:24:44 +0000 # ***...
# vax004AaMaf.sql was originally generated by the autoSql program, which also # generated vax004AaMaf.c and vax004AaMaf.h. This creates the database representation of # an object which can be loaded and saved from RAM in a fairly # automatic way. #VAX004 HIV-1 Protein Multiple Sequence Alignment CREATE TABLE vax004...
# # TABLE STRUCTURE FOR: site # INSERT INTO `site` (`id`, `name`, `street_number`, `street_name`, `building_name`, `post_code`, `city`) VALUES (1, 'quo', 3, 'temporibus', 'corrupti', 986, 'Kendrickfort'); INSERT INTO `site` (`id`, `name`, `street_number`, `street_name`, `building_name`, `post_code`, `city`) VALUES (2...
<reponame>julian-git/admin-blau -- MySQL dump 10.13 Distrib 5.5.34, for debian-linux-gnu (i686) -- -- Host: localhost Database: admin_blau -- ------------------------------------------------------ -- Server version 5.5.34-0ubuntu0.13.04.1 /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' *...
<gh_stars>1-10 drop table if exists transit; create table transit (query_name text, value real); -- Investigating the Railway key -- Calculate the length of funiculars, light rails, monorails, rails, subways and trams associated with the railway key for all ways insert into transit (query_name, value) values ('ra...
<reponame>WeilerWebServices/PostgreSQL SELECT '' AS oid, '' AS conname, '' AS convalidated FROM pg_constraint ct WHERE false
<gh_stars>1-10 -- -- Table structure for table `user` -- DROP TABLE IF EXISTS `user`; CREATE TABLE `user` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '用户ID', `username` varchar(128) NOT NULL COMMENT '用户名', `password` varchar(128) NOT NULL DEFAULT '<PASSWORD>' COMMEN...
-- IFS-6484 alter activity log constraints. ALTER TABLE activity_log DROP FOREIGN KEY fk_activity_log_thread_id; ALTER TABLE activity_log ADD CONSTRAINT fk_activity_log_thread_id FOREIGN KEY (thread_id) REFERENCES thread(id) ON DELETE SET NULL;
<filename>SRV/SRV/SRV/srv/Views/vDBSizeShortStatistics.sql create view [srv].[vDBSizeShortStatistics] as with tbl1 as ( SELECT [DBName] ,cast([MinTotalPageSizeKB] as decimal(18,3))/1024 as [MinTotalPageSizeMB] ,cast([MaxTotalPageSizeKB] as decimal(18,3))/1024 as [MaxTotalPageSizeMB] ,cast(([MaxTotalPage...
<filename>data/train/sql/6d192c3f15ef0c8932ae25538a821eb818172b96wsp_newCompensation.sql<gh_stars>10-100 IF OBJECT_ID('dbo.wsp_newCompensation') IS NOT NULL BEGIN DROP PROCEDURE dbo.wsp_newCompensation IF OBJECT_ID('dbo.wsp_newCompensation') IS NOT NULL PRINT '<<< FAILED DROPPING PROCEDURE dbo.wsp_newCo...
<reponame>m10io/sdk CREATE TYPE account_status as ENUM('pending', 'open', 'pending_closure', 'closed'); CREATE TYPE contact_type as ENUM('individual', 'legal_entity', 'employee'); CREATE TABLE public.accounts ( id BIGSERIAL PRIMARY KEY, status account_status DEFAULT 'pending' NOT NULL, bank_reference JSONB...
<filename>coeus-db/coeus-db-sql/src/main/resources/org/kuali/coeus/coeus-sql/current_mysql/5.1.0/dml/KR_DML_01_KCINFR-686_B000.sql<gh_stars>0 DELIMITER / update KRCR_PARM_T set PARM_DESC_TXT='The cfda cron job is set to run at 6am every morning as the default. For a detailed explanation on the cron trigger and to modif...
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50520 Source Host : localhost:3306 Source Database : se1809 Target Server Type : MYSQL Target Server Version : 50520 File Encoding : 65001 Date: 2018-10-16 17:18:02 */ SET FOREIGN_KEY_CHECKS=0; -- --...
<filename>dist/2021-01-12/covid19/ed/cql/Current Severity - C - Clinical-0.0.1.cql library Current_Severity_-_C_-_Clinical version '0.0.1' include COVID19_ED_CPG_Situational_Data version '0.0.1' called Situational Data Definitions /* Mapped from Decision 'Current Severity of Covid19 - Kind of -- Clinical' | expres...