sql
stringlengths
6
1.05M
-- 2021-03-29T05:35:01.964Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgType,Updated,UpdatedBy,Value) VALUES (0,545029,0,TO_TIMESTAMP('2021-03-29 08:35:01','YYYY-MM-DD HH24:MI:SS'),100,'D'...
create sequence ENV_ID_SEQ start 1 increment 1; create sequence MICROSERVICE_ID_SEQ start 1 increment 1; create table ENV (ENV_ID int8 not null, LIVE boolean not null, ENV_NAME varchar(255) not null, NEXT varchar(255), UPDATED_DATE varchar(255) not null, PRODUCT_ID varchar(255) not null, primary key (ENV_ID)); creat...
CREATE TABLE [dbo].[ResponseDisplaySettings]( [FormId] [uniqueidentifier] NOT NULL, [ColumnName] [varchar](200) NOT NULL, [SortOrder] [int] NOT NULL, CONSTRAINT [PK_ResponseGridcolumns] PRIMARY KEY CLUSTERED ( [FormId] ASC, [ColumnName] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = ...
<reponame>Ghvstcode/customers<filename>migrations/006_create_customer_ofac_searches.up.sql create table customer_ofac_searches( customer_id varchar(40), entity_id varchar(40), sdn_name varchar(40), sdn_type integer, percentage_match double precision (5, 2), blocked boolean, created_at datetime );
<filename>src/main/resources/db/migration/V5.3.0.1__7409-remove-worldmap-geoconnect.sql -- psql:src/main/resources/db/migration/V5.3.0.1__7409-remove-worldmap-geoconnect.sql:5: ERROR: cannot drop table worldmapauth_tokentype because other objects depend on it -- DETAIL: constraint fk_worldmapauth_token_application_id...
SELECT count() FROM numbers(0); SELECT count() FROM numbers(1); SELECT count() FROM numbers(10); SELECT count() FROM numbers(100000); SELECT * FROM numbers(0); SELECT * FROM numbers(1); SELECT * FROM numbers(10);
ALTER TABLE "selfservice_login_flows" DROP COLUMN "_internal_context_tmp";
drop if exists t1,t2; create table t1 (a int, b varchar(32)); insert into t1 values(1,'ccc'); insert into t1 values(3,'eee'); create table t2 (c int); insert into t2 values(3); delete from t2 where c in (with recursive subquery_t1(a) as(select 1 union all select a+1 from t1 where a<10)select * from subquery_t1); d...
<reponame>UKGovernmentBEIS/open-regulation-platform-alpha begin; select plan(2); \i tests/test_support/base-users-setup.sql \i tests/test_support/base-docs-setup.sql \i tests/test_support/base-orpml-setup.sql \i tests/test_support/pgtap-doc-metadata-setup.sql select lives_ok($$ select update_document_metadata(...
<reponame>FeliscaJieretno/Felisca<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 02, 2018 at 09:53 AM -- Server version: 10.1.30-MariaDB -- PHP Version: 7.2.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; ...
<filename>db/seeds.sql<gh_stars>0 INSERT INTO burger (burger_name) VALUES ('Black and Blue Burger'); INSERT INTO burger (burger_name) VALUES ('Shrooming Burger'); INSERT INTO burger (burger_name) VALUES ('Double Cheese Burger');
<gh_stars>0 drop table if exists entries; create table if not exists entries ( id integer primary key autoincrement, title text not null, author text not null, text text not null ); insert into entries (title, author, text) values ('DOctoru', 'motherfucker', 'Petr')
<reponame>Uniceub-Web-Development-2016-2/Jose-Eduardo-Kimura<filename>devel/db/brain_guide_db_v1.sql CREATE TABLE USER( ID_USER INTEGER NOT NULL, STR_NAME VARCHAR(255) NOT NULL, STR_EMAIL VARCHAR(255) NOT NULL, STR_LOGIN VARCHAR(255) NOT NULL, STR_PASS VARCHAR(255) NOT NULL, BOOL_COORDINATOR BOOLEAN NOT NULL, BO...
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 22, 2019 at 12:22 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 @OLD...
----Search/View LOA Link Role Action insert into eg_action (ID,NAME,URL,QUERYPARAMS,PARENTMODULE,ORDERNUMBER,DISPLAYNAME,ENABLED,CONTEXTROOT,VERSION,CREATEDBY,CREATEDDATE,LASTMODIFIEDBY,LASTMODIFIEDDATE,APPLICATION) values (NEXTVAL('SEQ_EG_ACTION'),'SearchLOAToCreateContractorBillForLOA','/searchletterofacceptance/sear...
CREATE TABLE `page_ouvrages` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `page` varchar(150) NOT NULL DEFAULT '', `raw` text, `opti` text, `opticorrected` text, `optidate` timestamp NULL DEFAULT NULL, `skip` tinyint(1) ...
CREATE TABLE IF NOT EXISTS uuid_mapping (id int, uuid varchar); /* EMPLOYEE ADDRESSES */ INSERT INTO address (id, version, street, housenumber, zipCode, city, country) VALUES (19, 0, 'Berliner Strasse', '94', '10117', 'Berlin', 'Deutschland'); INSERT INTO address (id, version, street, housenumber, zipCode, city, count...
USE [Koski_SA] GO /****** Object: StoredProcedure [sa].[p_lataa_tutkinnot_ja_tutkinnonosat_osasuoritus_pl_eivos] Script Date: 31.10.2020 17:30:12 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER PROCEDURE [sa].[p_lataa_tutkinnot_ja_tutkinnonosat_osasuoritus_pl_eivos] @minVuosi int = 2018, @maxVuos...
CREATE DATABASE opal; CREATE USER opal_user WITH PASSWORD '<PASSWORD>'; ALTER ROLE opal_user SET client_encoding TO 'utf8'; ALTER ROLE opal_user SET default_transaction_isolation TO 'read committed'; ALTER ROLE opal_user SET timezone TO 'EST'; GRANT ALL PRIVILEGES ON DATABASE opal TO opal_user;
CREATE TABLE IACUC_PROTO_CORRESP_TEMPL ( PROTO_CORRESP_TEMPL_ID NUMBER(12,0) NOT NULL, PROTO_CORRESP_TYPE_CODE VARCHAR2(3) NOT NULL, COMMITTEE_ID VARCHAR2(15) NOT NULL, FILE_NAME VARCHAR2(150) NOT NULL, UPDATE_TIMESTAMP DATE NOT NULL, UPDATE_USER VARCHAR2(60) NOT NUL...
USE burgers_db; INSERT INTO burgers (id, burger_name) VALUES (1, 'Baconator'), (2, 'Spicy Crispy Chicken'), (3, 'Volcano Burger');
<reponame>YangYongZhi/MiniExam INSERT INTO orgtype (id, no, name, parent_no, parent_name) VALUES (20, 'PBC', '人民银行', 'AAA', 'null');
CREATE TABLE user_temple ( id UUID PRIMARY KEY, name TEXT ); CREATE TABLE picture ( id UUID PRIMARY KEY, user_id UUID REFERENCES user_temple(id), img BYTEA );
CREATE EXTENSION plpgsql SCHEMA pg_catalog VERSION "1.0"; CREATE EXTENSION postgis SCHEMA public VERSION "2.0.1"; CREATE SCHEMA druid AUTHORIZATION geostaff; GRANT ALL ON SCHEMA druid TO geostaff; GRANT USAGE ON SCHEMA druid TO georead; SET search_path TO public; CREATE TABLE registered_layers ( druid char...
SET FOREIGN_KEY_CHECKS=0; DROP TABLE IF EXISTS `store`; DROP TABLE IF EXISTS `store_group`; DROP TABLE IF EXISTS `store_website`; SET FOREIGN_KEY_CHECKS=1;
CREATE TABLE [dbo].[TelemetryValues] ( [Id] INT NOT NULL PRIMARY KEY IDENTITY, [TelemetryId] VARCHAR(50) NULL, [SensorId] INT NOT NULL, [SourceTimestamp] DATETIME2 NOT NULL, ValueInt INT NULL, ValueDouble FLOAT NULL, ValueBool BIT NULL, ValueStr NVARCHAR(MAX) NULL, CONSTRAINT [FK_TelemetryValues_ToTel...
<gh_stars>1-10 GO CREATE TABLE [DOI].[DefaultConstraints] ( [DatabaseName] [nvarchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [SchemaName] [nvarchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [TableName] [nvarchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [ColumnName] [nvarchar] (1...
BEGIN; DROP INDEX IF EXISTS healthit_product_name_version_idx; COMMIT;
CREATE INDEX IF NOT EXISTS idx_user_terms_of_service_user_id ON usertermsofservice (userid); DROP TABLE IF EXISTS usertermsofservice;
ALTER TABLE role DROP CONSTRAINT unique_role_name; ALTER TABLE role DROP group_reference_id; ALTER TABLE role DROP group_reference_name; ALTER TABLE role DROP role_type; ALTER TABLE permission DROP CONSTRAINT unique_mask; ALTER TABLE permission DROP CONSTRAINT unique_permission_name; ALTER TABLE permission DROP mas...
<gh_stars>0 create database trabalhoPoo; use trabalhoPoo; create table Cliente( id integer UNSIGNED auto_increment not null, whatsapp varchar(11), nome varchar(100) not null, address varchar(150) not null, district varchar(100) not null, city varchar(100) not null, primary key (id) ); insert into Cl...
# 20. Increase Salaries # # Write a SQL query to increase salaries of all employees that are in # the Engineering, Tool Design, Marketing or Information Services # department by 12%. Then select Salaries column from the Employees table. USE soft_uni; UPDATE employees e SET e.salary = e.salary * 1.12 WHERE e.depa...
SET SERVEROUTPUT ON CREATE PACKAGE pk1 AS PROCEDURE insert_seller(s_id seller.id%TYPE, s_name seller.name%type, s_gender seller.gender%type, s_adress seller.adress%type, s_phone seller.phone%type, s_shop seller.shop_name%type); PROCEDURE del_seller(s_id seller.id%type); END pk1; / CREATE OR REPLACE P...
<gh_stars>0 # Descripción: Ejercicio práctico 2.7 # Autor: <NAME> # Fecha: 05/09/2020 # Enunciado: # Implemente en su base de datos el cambio sugerido en el ejercicio conceptual 2.7 # # Objetivo de ejercicio: Implementar la base de datos como se muestra la página 20 del apunte "UNIDAD 2 -M1- -DBD- -VALIDADA- -...
/* Borrowed from <NAME>: https://littlekendra.com/2016/01/28/how-to-check-if-an-index-exists-on-a-table-in-sql-server */ IF 1 = (SELECT COUNT(*) as index_count FROM sys.indexes AS si JOIN sys.objects AS so on si.object_id=so.object_id JOIN sys.schemas AS sc on so.schema_id=sc.schema_id WHERE ...
-- https://www.hackerrank.com/challenges/weather-observation-station-2/problem SELECT CAST(SUM(Lat_n) as DECIMAL(10, 2)) as lat, CAST(SUM(Long_w) as DECIMAL(10,2)) as lon FROM Station;
CREATE PROCEDURE [dbo].[uspVacancySelectFilledNotCompleted] @EmployerId Int = 0, @TrainingProviderId Int = 0, @VacancyManagerId int = null, @SortByField NVarchar(20), @IsSortAsc Bit, @PageNumber Int, @PageSize Int, @TotalRows Int OUTPUT AS BEGIN -- SET NOCOUNT ON added to prevent extra result sets from -- in...
# select all zoning objects updated after 2017-09-11 (last update) SELECT a.*, b.zone_class as old_zone_class FROM second_city_zoning_feb_27_2020 as a, zoning_asof_11sep2017 as b WHERE a.zoning_id = b.zoning_id AND a.update_timestamp > 1505144090000 # select all zoning objects that have a new zone_class SELECT a.*, b....
<reponame>mfooo/wow<filename>src/bindings/Scriptdev2/sql/Updates/0.0.3/r1335_scriptdev2.sql<gh_stars>1-10 DELETE FROM script_texts WHERE entry=-1230003; INSERT INTO script_texts (entry,content_default,sound,type,language,emote,comment) VALUES (-1230003,'You have challenged the Seven, and now you will die!',0,0,0,0,'doo...
-- create new tables / functions / triggers -- \i init/updates/NET-145-storage-accumulation-auditing.sql -- apply production permissions GRANT EXECUTE ON FUNCTION solaragg.find_audit_acc_datum_daily(bigint,text) TO solar; GRANT SELECT ON TABLE solaragg.aud_acc_datum_daily TO solar; GRANT ALL ON TABLE solaragg.aud_a...
## 获取某个学生某条题目的答题历史记录 #macro($zyFindByQuestionId(studentId,questionId,limit)) SELECT * FROM student_question_answer WHERE student_id = :studentId AND question_id = :questionId ORDER BY id DESC LIMIT :limit #end ## 获取某个学生不同题目分组后的前N条答题历史记录 #macro($zyFindByQuestionIdGroup(studentId, limit, questionIds)) SELECT t...
-- SQL Server -- Allow a GROUP BY query to not be distracted by time minutes/seconds use bpms_nc select cast(insert_date as char(11)), count(cast(insert_date as char(11))) from Claims_More_Info group by cast(insert_date as char(11))
<gh_stars>1-10 INSERT INTO t (id, k, v) VALUES (0, 0, 'val0'); INSERT INTO t (id, k, v) VALUES (1, 1, 'val1'); INSERT INTO t2 (id, k, v) VALUES (0, 0, 'val0'); INSERT INTO t2 (id, k, v) VALUES (1, 1, 'val1'); INSERT INTO t2 (id, k, v) VALUES (2, 2, 'val2');
<filename>TablesSQL/Symptome.sql create Table Symptome ( code number(12), codeSeq number(9), description varchar2(100), CONSTRAINTS cleP2 PRIMARY KEY (code, codeSeq), CONSTRAINTS cleEt9 FOREIGN KEY (code) REFERENCES Consultation On Delete Cascade ); commit;
<gh_stars>0 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET NAMES utf8 */; /*!50503 SET NAMES utf8mb4 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; CREATE TABLE IF NOT EX...
<reponame>elite0107/SUPEX-ALPHA<filename>supex.sql /* Navicat MySQL Data Transfer Source Server : Supex Source Server Type : MySQL Source Server Version : 100421 Source Host : localhost:3306 Source Schema : supex Target Server Type : MySQL Target Server Version : 100421 File E...
<filename>Change Data Capture/CDC_Enable_Table.sql USE yourdbname GO EXEC sys.sp_cdc_enable_table @source_schema = N'dbo', @source_name = N'yourtablename', @role_name = null GO
<filename>DataBaseManagementSystem_Lab/03_StudentCoursesBooks/query4.sql -- Produce a list of text books (include Course Number, Book ISBN, Book Title) in the alphabetical order for courses offered by the ‘CS’ department that use more than two books. SELECT C.courseno, T.bookisbn, T.booktitle FROM Course C, Book_Adopt...
-- Adminer 4.8.0 MySQL 5.5.5-10.4.6-MariaDB dump SET NAMES utf8; SET time_zone = '+00:00'; SET foreign_key_checks = 0; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; CREATE DATABASE `point_of_sales` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `point_of_sales`; DROP TABLE IF EXISTS `categories`; CREATE TABLE `categories` ...
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Aug 17, 2021 at 06:34 PM -- Server version: 5.7.26 -- 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_CHA...
<gh_stars>0 DROP TABLE IF EXISTS `s_1`; CREATE TABLE `s_1` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `mdtrt_evt_id` varchar(30) COMMENT '就诊事件ID', `medcasno` varchar(30) COMMENT '病案号', `prfs` varchar(50) COMMENT '职业', `addr_prov_admdvs` VARCHAR(6) COMMENT '现住址-省(区、市)行政区划', `addr_city_admdvs` VARCHAR(6) CO...
<gh_stars>0 ------------------------- -- ROW NUMBER ------------------------- SELECT CATEGORY, MOVIE, TICKET_COUNT, BRUTTO_VALUE FROM ( SELECT MOVIES_CATEGORY.NAME AS CATEGORY, MOVIES.NAME AS MOVIE, SUM(SALES.BRUTTO_PRICE) AS BRUTTO_VALUE, SUM(SALES.TICKET_COUNT) AS TICKET_COUNT, ROW_NUMB...
<gh_stars>0 # Addresses DECLARE SAFEEngineAddress DEFAULT "0xcc88a9d330da1133df3a7bd823b95e52511a6962"; DECLARE SAFEManagerAddress DEFAULT "0xefe0b4ca532769a3ae758fd82e1426a03a94f185"; DECLARE NullAddress DEFAULT "0x0000000000000000000000000000000000000000"; # Dates DECLARE DeployDate DEFAULT TIMESTAMP("2021-02-13 12...
<filename>server/v1/migration/deploy/message_update_schema.sql -- Deploy sms-management:message_update_schema to pg BEGIN; ALTER TABLE "message" ALTER COLUMN to_user TYPE text; ALTER TABLE "message" ALTER COLUMN from_user TYPE text; COMMIT;
INSERT INTO department (department_name) VALUES ('Executive Leadership'), ('Engineering'), ('Human Resources'); INSERT INTO role (title, salary, department_id) VALUES ('Chief Executive Officer', 200000, 1), ('Chief Technology Officer', 150000, 1), ('Solutions Development Director', 100000, 2), ...
<reponame>EmreOzyildirim/laravel-denizinsaatyapi INSERT INTO `contact_infos` (`address`, `phone_1`, `phone_2`, `support_mail`) VALUES ('<NAME>, Sümer Cd. No: 2/3, 34785 Sancaktepe/İstanbul','0216 622 0 621', '0532 052 2024','<EMAIL>');
CREATE TABLE IF NOT EXISTS category ( id INT AUTO_INCREMENT PRIMARY KEY, title VARCHAR(200) NULL ); CREATE TABLE IF NOT EXISTS comment ( id INT AUTO_INCREMENT PRIMARY KEY, text VARCHAR(255) NULL, post_id INT NULL ); CREATE TABLE IF NOT EXISTS post ( id INT AUTO_INCREMENT PRIMARY KEY...
<reponame>jkstill/statops<filename>sql/gather_fixed_objects_stats.sql -- gather_fixed_objects_stats.sql -- gather statistics for fixed objects -- dbms_stats.gather_fixed_objects_stats is unlike gathering -- schema stats in that stats may be saved either in the dictionary -- or in a stat table. -- I do not know why e...
SELECT movie_id, movie_file, name, movie_year, description FROM "movie" LIMIT 5 OFFSET ?;
DELETE FROM history_users WHERE TO_TIMESTAMP(timestamp, "YYYY-MM-DDTHH:MI:SSZ") < NOW() - INTERVAL '30 days'; DELETE FROM history_all_users WHERE TO_TIMESTAMP(timestamp, "YYYY-MM-DDTHH:MI:SSZ") < NOW() - INTERVAL '30 days'; DELETE FROM history_users_objects WHERE TO_TIMESTAMP(timestamp, "YYYY-MM-DDTHH...
<reponame>connor4312/multicraft<filename>panel/protected/data/panel/update.sqlite.8.sql create table if not exists `mysql_db` ( `server_id` integer not null primary key, `name` text not null, `password` text not null ); alter table `server_config` add `display_ip` text not nu...
<gh_stars>0 merge into Metadata.FileFormatType as Dst using(values (1, 'DelimitedText', ''), (2, 'FixedWithText', ''), (3, 'ExcelWorkbook', ''), (4, 'XML', ''), (5, 'JSON', '') ) as Src(Id, Name, Description) on Dst.TypeCode = Src.Id when matched then update set Name = Src.Name, Description = src.Descript...
<gh_stars>10-100 -- constraint 는 부모 테이블에 생성 되지 않고 자식 테이블에 만들어야 함. index 를 잘 타는지는 테스트 필요. alter table only api_log_2021 add constraint api_log_2021_pk primary key (api_log_id); -- index 의 경우 부모 테이블에만 만들면 됨 create index api_log_idx on api_log (insert_date); commit;
<reponame>FWSCO/dbt_asana_source select * from {{ var('team') }}
-- Revert delivery:github_patchsets from pg BEGIN; DROP TABLE IF EXISTS github_patchsets; COMMIT;
<filename>environment/src/main/resources/schema/app/20190626141237_DISTX-197_add_telemetry.sql -- // DISTX-197 Implement Logging/WXM request support on Env side -- Migration SQL that makes the change goes here. ALTER TABLE environment ADD COLUMN IF NOT EXISTS telemetry text; -- //@UNDO -- SQL to undo the change goes ...
<reponame>osurce/setmod<filename>bot/migrations/2019-05-25-180119_auth/up.sql -- Grants that have been initialized and their corresponding initialization -- hash. CREATE TABLE initialized_grants ( scope VARCHAR NOT NULL PRIMARY KEY, version VARCHAR NOT NULL ); -- Grants that have been allowed for specific role...
<reponame>rojenzaman/amusewiki<filename>dbicdh/PostgreSQL/upgrade/70-71/001-auto.sql -- Convert schema '/home/marco/amw/AmuseWikiFarm/dbicdh/_source/deploy/70/001-auto.yml' to '/home/marco/amw/AmuseWikiFarm/dbicdh/_source/deploy/71/001-auto.yml':; ; BEGIN; ; CREATE TABLE "mirror_info" ( "mirror_info_id" serial NOT ...
<filename>openGaussBase/testcase/KEYWORDS/recheck/Opengauss_Function_Keyword_Recheck_Case0031.sql<gh_stars>0 -- @testpoint:opengauss关键字recheck(非保留),作为字段数据类型(合理报错) --前置条件 drop table if exists recheck_test cascade; --关键字不带引号-合理报错 create table recheck_test(id int,name recheck); --关键字带双引号-合理报错 create table recheck_test...
<filename>aline_replication_scripts/iac_first_measure_time.sql<gh_stars>0 DROP MATERIALIZED VIEW IF EXISTS ALINE_FLAG CASCADE; CREATE MATERIALIZED VIEW ALINE_FLAG as select patientunitstayid, min(meas_time) iac_first_meastime, 1 as aline_flag from ((select patientunitstayid, noteoffset as meas_time from eicu_crd.note ...
DROP TABLE IF EXISTS countries; CREATE TABLE IF NOT EXISTS countries( id SERIAL, countryname VARCHAR(255), cases INT, deaths INT, recovered INT, date DATE );
<reponame>morvax95/sistema-dicarp<filename>database/bd_postgres.sql<gh_stars>0 -- -- PostgreSQL database dump -- -- Dumped from database version 9.6.5 -- Dumped by pg_dump version 9.6.5 -- Started on 2018-03-06 14:13:51 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET...
<gh_stars>0 SELECT Name, ProductID FROM Production.Product WHERE (Weight BETWEEN 12 and 20) and (SellStartDate > GETDATE()) --there no such products
-- name: GetUsers :many SELECT * FROM users; --name GetUser :one SELECT * FROM users WHERE id = $1 LIMIT 1; -- name: DeleteUser :exec DELETE FROM users WHERE id = $1; -- name: CreateUser :one INSERT INTO users (firstname, lastname) VALUES ($1, $2) RETURNING *; -- name: CreateTodo :one INSERT INTO todos (user_id, ta...
<reponame>avseredyuk/lhc ALTER TABLE sensor_report ADD COLUMN abs_humidity numeric(7,2);
\W USE fletty; DROP TRIGGER IF EXISTS uttrekk_a_upd; DELIMITER // CREATE TRIGGER uttrekk_a_upd BEFORE UPDATE ON uttrekk FOR EACH ROW BEGIN DECLARE vUser varchar(50); SELECT USER() INTO vUser; INSERT INTO flettylogg(id ,arkivskaper,status,startDato,sluttDato, saksNR,mottattDATO,forventetAnkomst,system ,systemvers...
/** * Author: artur * Created: Feb 5, 2018 */ alter table eng_licenses rename to core_licenses; alter table eng_cities rename to core_cities; alter table eng_states rename to core_states; alter table eng_clients rename to core_clients; alter table eng_contacts rename to core_contacts; create table fin_postin...
-- phpMyAdmin SQL Dump -- version 4.4.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Oct 25, 2016 at 11:00 AM -- Server version: 5.6.26 -- PHP Version: 5.6.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
CREATE TABLE IF NOT EXISTS neighbourhoods ( id SERIAL PRIMARY KEY , name VARCHAR(100) NOT NULL UNIQUE , boundary GEOMETRY(MULTIPOLYGON, 4326) NOT NULL , valid_from TIMESTAMPTZ , valid_to TIMESTAMPTZ ) ;
--1. List the following details of each employee: employee number, last name, first name, gender, and salary. SELECT employees.emp_no, employees.last_name, employees.first_name, employees.gender, salaries.salary FROM employees JOIN salaries ON employees.emp_no = salaries.emp_no; --2. List employees who were h...
<gh_stars>0 BEGIN; -- -- Create model DeliveryAddress -- CREATE TABLE "main_deliveryaddress" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "firstName" varchar(200) NOT NULL, "lastName" varchar(200) NOT NULL, "address1" varchar(200) NOT NULL, "address2" varchar(200) NOT NULL, "address3" varchar(200) NOT NULL, "state...
CREATE TABLE [tracked_deletes_nmped].[ClassPeriodDescriptor] ( ClassPeriodDescriptorId [INT] NOT NULL, Id uniqueidentifier NOT NULL, ChangeVersion bigint NOT NULL, CONSTRAINT PK_ClassPeriodDescriptor PRIMARY KEY CLUSTERED (ChangeVersion) ) CREATE TABLE [tracked_deletes_nmped].[DirectCertific...
ALTER TABLE history MODIFY resource_name varchar(300);
CREATE INDEX index_action_policy_id ON action(policy_id(50)); CREATE INDEX index_resource_type_rs_type_name ON resource_type(rs_type_name(50));
-- create vclass using Constraints null and SHARED create vclass t1 ( c1 int SHARED 9 null ); drop t1;
-- @testpoint: opengauss关键字modifies(非保留),作为同义词对象名,部分测试点合理报错 --前置条件 drop table if exists explain_test; create table explain_test(id int,name varchar(10)); --关键字不带引号-成功 drop synonym if exists modifies; create synonym modifies for explain_test; insert into modifies values (1,'ada'),(2, 'bob'); update modifies set modif...
<gh_stars>0 if OBJECT_ID('tempdb..#TableSize') is not null drop table #TableSize; create table #TableSize ( [name] varchar(255), [rows] bigint, reserved varchar(255), [data] varchar(255), index_size varchar(255), unused varchar(255)); if OBJECT_ID('tempdb..#ConvertedSizes') is not null drop t...
USE employee_trackerDB; INSERT INTO department (dept_name) VALUES ("Administration"), ("Sales"), ("Accounting"), ("Marketing"); INSERT INTO role (title, salary, department_id) VALUES ("Chief Executive Officer", 150000, 1), ("Human Resources Director", 80000, 1), ("Employee Benefits Director", 65000, 1), ("Vice Pres...
SELECT ogc_fid AS t_id, bfsnr, gueltigkeit, punktzeichen, geometrie, mutation FROM av_pfdgb.t_liegenschaften_grenzpunkt ;
<reponame>RianMupti/laravel-7<filename>sql/testreinovasi.sql -- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Apr 24, 2021 at 03:18 AM -- Server version: 5.7.24 -- PHP Version: 7.4.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET tim...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 30, 2021 at 06:19 AM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
<gh_stars>1-10 CREATE PROCEDURE [dbo].[dnn_AddSimpleTerm] @VocabularyID int, @Name nvarchar(250), @Description nvarchar(2500), @Weight int, @CreatedByUserID int AS INSERT INTO dbo.dnn_Taxonomy_Terms ( VocabularyID, [Name], Description, Weight, CreatedByUserID, CreatedOnDate, LastModifiedBy...
<filename>dbtile/src/test/resources/sql/default.sql SELECT MAX(ROUND(latitude, {{round}})) AS latitude, MAX(ROUND(longitude, {{round}})) AS longitude FROM {{table_name}} GROUP BY CONCAT(ROUND(latitude, {{round}}), ROUND(longitude, {{round}}))
-- file:roleattributes.sql ln:68 expect:true ALTER ROLE regress_test_replication WITH REPLICATION
/* SimpleDbTests - (C) 2016 - 2017 <NAME> SimpleDbTests is available under the zlib license: This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this s...
<reponame>dram/metasfresh<filename>backend/de.metas.ui.web.base/src/main/sql/postgresql/system/41-de.metas.ui.web.base/5480650_sys_gh3211_WEBUI_PickingSlotsClearingView_TakeOutHU.sql -- 2017-12-14T16:09:35.012 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process SET Value='WEBUI_PickingSl...
<filename>assthread/src/main/java/ru/job4j/search/create dataandeTablePath.sql<gh_stars>0 --create database "pathData"; create table pathTable( id serial primary key, path character(255) );
<filename>script/sharding-jdbc-example.sql CREATE TABLE `user` ( `user_id` int(11) NOT NULL, `name` varchar(50) NOT NULL, `age` int(11) NOT NULL, `address` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; CREATE TABLE `goods` ( `goods_id` int(11) NOT NULL, `name` varchar(50) NOT NULL, `type...
<gh_stars>1-10 -- insert the user_types INSERT INTO usertype (name) VALUES ('Support'); INSERT INTO usertype (name) VALUES ('Database Administrator'); INSERT INTO usertype (name) VALUES ('Programmer'); INSERT INTO usertype (name) VALUES ('Security Analyst'); INSERT INTO usertype (name) VALUES ('System Analyst'); INSER...
/****** Object: Table [T_MaxQuant_Mods] ******/ /****** RowCount: 584 ******/ SET IDENTITY_INSERT [T_MaxQuant_Mods] ON INSERT INTO [T_MaxQuant_Mods] (Mod_ID, Mod_Title, Mod_Position, Mass_Correction_ID, Composition, Isobaric_Mod_Ion_Number) VALUES (1,'Acetyl (K)','notCterm',1120,'C(2) H(2) O',0) INSERT INTO [T_Max...