sql
stringlengths
6
1.05M
create schema [auth];
IF EXISTS (SELECT * FROM sys.objects WHERE name = 'fnGetDateTime') BEGIN DROP FUNCTION dbo.fnGetDateTime PRINT 'DROP FUNCTION dbo.fnGetDateTime' END GO CREATE FUNCTION dbo.fnGetDateTime (@Date DATETIME, @Time NVARCHAR(12)) RETURNS DATETIME AS BEGIN /* This appends the date from @Date with the time from @Time. */ ...
-- Check the information and course scores of students with higher grades in "01" courses than in "02" courses. # Right Solution SELECT * FROM student NATURAL JOIN(SELECT a.s_id,a.s_score as score1,b.s_score as score2 FROM (SELECT s_id, s_score FROM score WHERE score.c_id="01")as a ,(SELECT s_id, s_score FROM score WH...
DROP TABLE IF EXISTS KEY_WORKER; CREATE TABLE KEY_WORKER ( STAFF_ID BIGINT NOT NULL, STATUS VARCHAR( 12) NOT NULL, CAPACITY INT NOT NULL, AUTO_ALLOCATION_FLAG char(1) NOT NULL DEFAULT 'Y', CONSTRAINT KEY...
<reponame>cici258/flask-movie insert into userlog(user_id,ip,addtime) values (1,"192.168.1.4",now()); insert into userlog(user_id,ip,addtime) values (1,"192.168.1.4",now()); insert into userlog(user_id,ip,addtime) values (1,"192.168.1.4",now()); insert into userlog(user_id,ip,addtime) values (1,"192.168.1.4",now()); in...
-- script to export vs30_can_site_model_xref COPY vs30.vs30_can_site_model_xref TO 'D:\Workspace\GitHub\openquake-inputs\earthquake\sites\regions\vs30_CAN_site_model_xref.csv' DELIMITER ',' CSV HEADER;
<gh_stars>1-10 -- Delete PubSub Delete From Csg_Pubsub; UPDATE CON_ITEM SET EXCLUSIVEEDITLOCK=0; DELETE FROM CON_ITEMEXCLUSIVELOCK; DECLARE commitCount NUMBER := 0; total NUMBER := 0; CURSOR del_record_cur IS Select Rowid From Con_Wamwork; BEGIN FOR rec IN ...
<gh_stars>1-10  CREATE View workflow.ProcedureDependency_input_PersistenceDependency As Select referenced_Procedure_RepoObject_guid , referencing_Procedure_RepoObject_guid , is_PersistenceDependency --, [is_active] --, [Description] --, [id] From workflow.ProcedureDependency Where is_PersistenceDepende...
<filename>schema/revert/receiving/redcap-det/indexes/processing-log.sql<gh_stars>10-100 -- Revert seattleflu/schema:receiving/redcap-det/indexes/processing-log from pg begin; drop index receiving.redcap_det_processing_log_idx; commit;
<gh_stars>1-10 create sequence hibernate_sequence start with 1 increment by 1; create table aliaser ( id bigint not null, fnr varchar(255), etternavn varchar(255), fornavn varchar(255), mellomnavn varchar(255), person_id bigint not null, primary key (id) ); create table a...
<filename>core/store/migrate/migrations/0077_add_webauthn_table.sql<gh_stars>1000+ -- +goose Up CREATE TABLE web_authns ( "id" BIGSERIAL PRIMARY KEY, "email" text NOT NULL, "public_key_data" jsonb NOT NULL, CONSTRAINT fk_email FOREIGN KEY(email) REFERENCES users(email) ); CREATE UNIQUE ...
/* Navicat SQLite Data Transfer Source Server : Douban Source Server Version : 30808 Source Host : :0 Target Server Type : SQLite Target Server Version : 30808 File Encoding : 65001 Date: 2017-01-17 22:49:47 */ PRAGMA foreign_keys = OFF; -- ---------------------------- -- Table structu...
<filename>migrations/sql/V0.9__Alter_Permittee.sql ALTER TABLE permittee ADD effective_date date NOT NULL DEFAULT now(), ADD expiry_date date NOT NULL DEFAULT '9999-12-31'::date ;
<reponame>mmzsblog/mmzsblog-util CREATE TABLE TESTDATAS_20190701 ( ID NUMBER(4) NOT NULL, NAME NVARCHAR2(30), AGE NVARCHAR2(2), INFORMATION NVARCHAR2(30), UPDATEDATE NVARCHAR2(14), PRIMARY KEY (ID) );
<filename>schema/cwms/setPerms.sql ----------------------------------------------------------------------------- -- This software was written by Cove Software, LLC ("COVE") under contract -- to the United States Government. -- No warranty is provided or implied other than specific contractual terms -- between COVE an...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 14-Dez-2015 às 02:01 -- Versão do servidor: 10.1.8-MariaDB -- PHP Version: 5.6.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
<gh_stars>1-10 CREATE TABLE t1 (i int, col2 DATE, col3 DATE); create index idx_col1 on t1(GROUPBY_NUM()); drop table t1;
UPDATE Employees SET Salary = Salary + (Salary * 0.10) SELECT Salary FROM Employees
-- 1. Из таблиц базы данных, созданной в первой лабораторной работе, извлечь данные в JSON. /*\c db_music \o /artist.json SELECT ROW_TO_JSON(r) FROM artist r; \o /concert.json SELECT ROW_TO_JSON(r) FROM concert r; \o /fan.json SELECT ROW_TO_JSON(r) FROM fan r; \o /ticket.json SELECT ROW_TO_JSON(r) FROM ticket r; */...
DISTINCT serve pra distinguir os iguais apenas uma vez select distinct Nome_Cliente, Id_Cliente from clientes order by Id_Cliente;
<filename>Modules/Examples/scripts/vegetable.sql CREATE TABLE IF NOT EXISTS `vegetable` ( `id` int(11) NOT NULL, `name` varchar(30) NOT NULL, `order` int(11) NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=latin1; INSERT INTO `vegetable` (`id`, `name`, `order`) VALUES (1, 'brocolli', 3), (2, 'tomato', 1...
<gh_stars>0 INSERT INTO books (author, title, year, url) VALUES ('<NAME>', '<NAME>', 1980, 'http://amzn.to/1PhuGbZ'), ('<NAME>', '<NAME>', 1876, 'http://amzn.to/1MW4YUk'), ('<NAME>', 'The Adventures of Huckleberry Finn', 1884, 'http://amzn.to/1SoryZC');
-- phpMyAdmin SQL Dump -- version 4.0.10.10 -- http://www.phpmyadmin.net -- -- Хост: 127.0.0.1:3306 -- Время создания: Авг 11 2017 г., 22:29 -- Версия сервера: 5.5.45-log -- Версия PHP: 5.6.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
<reponame>V1n1c1us/PanelCI -- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 27-Nov-2017 às 10:48 -- Versão do servidor: 5.7.14 -- PHP Version: 5.6.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
USE `StagingReport`; CREATE TABLE `tblRRate` ( `RRateID` int(11) NOT NULL auto_increment, `CountryID` int(11) NULL, `CompanyID` int(11) NULL, `Code` varchar(50) NOT NULL, PRIMARY KEY (`RRateID`) ) ENGINE=InnoDB; CREATE TABLE IF NOT EXISTS `tblReport` ( `ReportID` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, ...
-- ecommerce_item_id_index -- ALTER TABLE `phppos_items` ADD INDEX (`ecommerce_product_id`);
create proc dbo.InsertNewImageWithPoint @figureId bigint, @boardId bigint, @pointId bigint, @src nvarchar(max), @width int, @height int AS SET NOCOUNT ON; begin try begin tran insert into dbo.Figure (id, figureType, boardId) values(@figureId, 'image', @boardId) insert into dbo.[Image] (figureId, boardId, initP...
-- MySQL dump 10.13 Distrib 5.1.41, for Win32 (ia32) -- -- Host: localhost Database: simpsons -- ------------------------------------------------------ -- Server version 5.1.41-community /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET...
-- Select fields from 2010 table SELECT code, year, income_group, gross_savings -- From 2010 table FROM economies2010 -- Set theory clause UNION -- Select fields from 2015 table SELECT code, year, income_group, gross_savings -- From 2015 table FROM economies2015 -- Order by code and year ORDER BY code, year; ...
SELECT * FROM mytable WHERE 'foo' = bar OR quz != 4
<filename>Databases/dashboard.sql -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 23, 2020 at 04:34 AM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*...
USE [master] GO /****** Object: LinkedServer [EMSIGHT-PROD] Script Date: 12/7/2018 5:15:55 PM ******/ EXEC master.dbo.sp_addlinkedserver @server = N'EMSIGHT-PROD', @srvproduct=N'MySQL', @provider=N'MSDASQL', @datasrc=N'EMSIGHT-PROD' /* For security reasons the linked server remote logins password is changed ...
-- =============================================================================================== -- Drop external data source template for Azure SQL Database and Azure SQL Data Warehouse Database -- =============================================================================================== IF EXISTS ( SELECT *...
<reponame>srtipo/Graham_Nano_Tip_Bot<filename>sql/old/get_pending.sql select count(*) from 'transaction' where processed=0 and giveawayid=0;
<gh_stars>0 CREATE TABLE IDN_BASE_TABLE ( PRODUCT_NAME VARCHAR2 (20), PRIMARY KEY (PRODUCT_NAME) ) / INSERT INTO IDN_BASE_TABLE values ('WSO2 Identity Server') / CREATE TABLE IDN_OAUTH_CONSUMER_APPS ( CONSUMER_KEY VARCHAR2 (512), CONSUMER_SECRET VARCHAR2 (512), ...
SELECT (100.00 * sum(CASE WHEN i_data LIKE 'PR%' THEN ol_amount ELSE 0 END) / (1 + sum(ol_amount))) AS promo_revenue FROM order_line, item WHERE ol_i_id = i_id;
<filename>src/main/resources/resources/cohortresults/sql/observation/byConcept/sqlObservationsByType.sql select c1.concept_id as OBSERVATION_CONCEPT_ID, c1.concept_name as OBSERVATION_CONCEPT_NAME, c2.concept_id as CONCEPT_ID, c2.concept_name as CONCEPT_NAME, hr1.count_value as COUNT_VALUE from @ohdsi_database_...
<gh_stars>10-100 SELECT Orders.OrderID, Customers.CustomerName FROM Orders INNER JOIN Customers ON Orders.CustomerID = Customers.CustomerID;
<reponame>YangHao666666/hawq set session role=usertest45; SELECT * INTO aaa FROM a WHERE i > 0 order by i;
<filename>Documents/gsb.sql -- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3306 -- Généré le : jeu. 05 mars 2020 à 21:06 -- Version du serveur : 10.4.10-MariaDB -- Version de PHP : 7.3.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SE...
<gh_stars>0 SELECT acc.location, count(*) FROM site as s, so_user as u1, question as q1, answer as a1, tag as t1, tag_question as tq1, badge as b, account as acc WHERE s.site_id = q1.site_id AND s.site_id = u1.site_id AND s.site_id = a1.site_id AND s.site_id = t1.site_id AND s.site_id = tq1.site_id AND s.site_id = b.si...
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 24-11-2021 a las 18:08:17 -- Versión del servidor: 10.1.21-MariaDB -- Versión de PHP: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CL...
BEGIN; ALTER DATABASE t_grre_cordn CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; -- do smt COMMIT;
-- In order to compare the performance of seata-golang, we copy some sql in -- https://github.com/opentrx/seata-go-samples/tree/v2/gorm/scripts CREATE database if NOT EXISTS `dtm_bench` default character set utf8mb4 collate utf8mb4_unicode_ci; use `dtm_bench`; SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ------...
<filename>Dogbert2.DB/Schema Objects/Schemas/dbo/Tables/Constraints/DF_AccessRequests_Pending.defconst.sql<gh_stars>1-10 ALTER TABLE [dbo].[AccessRequests] ADD CONSTRAINT [DF_AccessRequests_Pending] DEFAULT ((1)) FOR [Pending];
ALTER TABLE `fi_users` ADD `user_company` VARCHAR( 100 ) NOT NULL AFTER `user_name`; ALTER TABLE `fi_invoice_amounts` DROP `invoice_tax_rate`;
<filename>White-Jotter/White-Jotter/src/main/resources/white_jotter.sql<gh_stars>1-10 /* Navicat Premium Data Transfer Source Server : yxs Source Server Type : MySQL Source Server Version : 50648 Source Host : yxs.yang-xiansen.top:3306 Source Schema : white_jotter Target Server Typ...
CREATE PROCEDURE [dbo].[LogScriptEnd] @instanceId INT, @numberProcessed INT = NULL, @numberErrors INT = NULL, @exception NVARCHAR(MAX) = NULL AS -- Update the instances table to mark this script as 'done'... at least for now UPDATE Instances SET [EndTime] = GETUTCDATE(), [NumberProcessed] = @numberProcessed, ...
-- -- 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 PROCEDURE UpdateRewardPayoutStatus @rewardPayoutId UNIQUEIDENTIFIER, @payoutStatusId INT AS set nocount on DECLARE @st datetime = getUTCd...
<reponame>matuobasyouca/com.software5000.ma<gh_stars>1-10 ALTER TABLE WeChatPayOrder ADD businessId int ; ALTER TABLE Business ADD wxOpenId varchar(255) ; INSERT INTO SystemCode (codeType,codeName,codeValue)VALUES ('WeChatMCH','target4','formalMa4'); ALTER TABLE WeChatPayOrder ADD confirmState int DEFAULT 0; INSERT I...
-- incrvacuum.test -- -- execsql { PRAGMA auto_vacuum = 'incremental' } PRAGMA auto_vacuum = 'incremental'
\set ON_ERROR_STOP true \timing \i etl/StandardizedVocabularies/COHORT_DEFINITION/etl.sql \i etl/StandardizedDerivedElements/COHORT_ATTRIBUTE/etl.sql \i etl/StandardizedClinicalDataTables/MEASUREMENT/etl_contrib.sql \i etl/StandardizedVocabularies/ATTRIBUTE_DEFINITION/etl.sql \i etl/StandardizedClinicalDataTables/NOTE...
<filename>CSETWebApi/CSETWeb_Api/Database/dbo.QUESTION_GROUP_TYPE.Table.sql<gh_stars>100-1000 USE [CSETWeb] GO /****** Object: Table [dbo].[QUESTION_GROUP_TYPE] Script Date: 11/14/2018 3:57:25 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[QUESTION_GROUP_TYPE]( [Question_Group_Id] ...
-- Script generated by PLEX version 2.4.0 - more infos here: https://github.com/ogobrecht/plex -- Performance Hacks by <NAME>: https://connor-mcdonald.com/2019/05/17/hacking-together-faster-inserts/ -- For strange line end replacements a big thank to SQL*Plus: https://support.oracle.com/epmos/faces/DocumentDisplay?id=2...
<filename>passacre/schema.sql -- Copyright (c) <NAME> <_<EMAIL>> -- See COPYING for details. PRAGMA foreign_keys = ON; CREATE TABLE schemata ( schema_id INTEGER PRIMARY KEY, name TEXT UNIQUE NOT NULL, value TEXT NOT NULL ); CREATE TABLE sites ( site_name TEXT PRIMARY KEY, schema_id INTEGER NOT NU...
/* Biosecurity and pandemic preparedness */ /* Johns Hopkins Center for Health Security */ insert into donations(donor,donee,amount,donation_date,donation_date_precision,donation_date_basis,cause_area,url,donor_cause_area_url,influencer,donation_announcement_date,donation_announcement_date_precision,donation_announc...
<reponame>ibexa-yuna/ezcommerce ALTER TABLE ezpage_attributes MODIFY value LONGTEXT;
<reponame>mihov/dent-info -- MySQL Script generated by MySQL Workbench -- 09/14/16 16:39:19 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL...
--한글 주석문 --tbl_member테이블 생성 create table tbl_member( userid varchar2(50) primary key, userpw varchar2(50) not null, username varchar2(50) not null, email varchar2(100), regdate date,--등록날짜 updatedate date--수정날짜 ); select * from tbl_member; --오라클 날짜 함수 확인 , dual 테이블은 오라클 설치시 설치되는 임시테이블로 오라클 함수나 연산 겨로가값 확인 용도 insert in...
<gh_stars>0 SELECT pch.datetime tanggal, pc.name_file nama FROM project p INNER JOIN project_comment_head pch ON p.id = pch.project_id INNER JOIN project_comment pc ON pc.head_project_id = pch.id WHERE pc.project_views_id = 16
<reponame>sergiomt/bulkmailer<filename>src/main/resources/com/knowgate/bulkmailer/hipergate/datamodel/indexes/webbuilder.sql CREATE INDEX i1_pagesets ON k_pagesets(dt_created); CREATE INDEX i2_pagesets ON k_pagesets(gu_workarea); CREATE INDEX i3_pagesets ON k_pagesets(gu_microsite); CREATE INDEX i4_pagesets ON k_pag...
CREATE TABLE `timetables` ( `id` int(11) NOT NULL AUTO_INCREMENT, `file_name` varchar(255) NOT NULL, `path` text NOT NULL, `type` varchar(50) NOT NULL, `upload_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `active` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=lati...
<reponame>gh-determined-ai/determined<gh_stars>0 ALTER TABLE public.allocations ADD COLUMN state INT, ADD COLUMN is_ready BOOLEAN;
<filename>dbms/tests/queries/0_stateless/00858_issue_4756.sql<gh_stars>1-10 set distributed_product_mode = 'local'; use test; drop table if exists shard1; drop table if exists shard2; drop table if exists distr1; drop table if exists distr2; create table test.shard1 (id Int32) engine = MergeTree order by cityHash64(i...
CREATE OR REPLACE FUNCTION "HAS_PERMITOFTYPE" ( a_transaction_id in number, a_permit_type in varchar2 ) return number -- Given a transaction_id, and a permit type identify whether the specified transaction -- has a permit of the specified type linked either directly or through a shipment. -- @param a_transaction_id...
SELECT distinct concat('{"name": "',days,'__',CLASS_NAME,'"},') from huxi_2 where days>0 and days<15 order by days; SELECT concat('{"source": "',t1.days,'__',t1.CLASS_NAME,'", "target":"',t2.days,'__',t2.CLASS_NAME,'", "value":', count(DISTINCT t1.PATIENT_ID),'},') from huxi_2 t1 join huxi_2 t2 on t1.PATIENT_ID = t2...
CREATE STREAM R(A int, B int) FROM FILE 'examples/data/simple/r.dat' LINE DELIMITED csv; SELECT SUM(1) FROM (SELECT SUM(1) FROM R) r;
CREATE OR REPLACE FUNCTION alter_op_test_fn(boolean, boolean) RETURNS boolean AS $$ SELECT NULL::BOOLEAN; $$ LANGUAGE sql IMMUTABLE; CREATE OPERATOR === ( LEFTARG = boolean, RIGHTARG = boolean, PROCEDURE = alter_op_test_fn, COMMUTATOR = ===, NEGATOR = !==, RESTRICT = contsel, JOIN = contjoi...
<reponame>komainu8/pgroonga<filename>sql/function/flush/nonexistent.sql SELECT pgroonga_flush('pgroonga_index');
-- MySQL Script generated by MySQL Workbench -- Mon Jul 27 17:03:27 2020 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ON...
\o erosita_superset_clusters_load.out \copy catalogdb.erosita_superset_clusters from '/uufs/chpc.utah.edu/common/home/sdss10/sdss5/target/catalogs/eRosita/erosita_for_catalogdb_v0.5/sdssv_erosita_homogenise_superset_v0.1.2/csv/erosita_superset_clusters/sdssv_spiders_erass1_update_v05_clus_eromapper_efeds_lsdr8_v0.1.2.c...
--cast DATETIME(L)TZ columns to character string data types, in alter statement, alter_table_change_type_strict=no autocommit off; drop table if exists tz_test; create table tz_test(a int, ts datetime, dtltz datetime with local time zone, dttz datetime with time zone); set timezone 'UTC'; insert into tz_test values...
--test operators seteq, subset, superset, superseteq,subseteq, superseteq, setneq with set(bit) and set(bit varying) create class tb1 ( a set(bit(8))); create class tb2 ( b set(bit VARYING(8))); insert into tb1 values({b'0001'}); insert into tb1 values({b'0010'}); insert into tb1 values({b'0100'}); insert into tb2 va...
<gh_stars>1-10 --+ holdcas on; set names utf8; set system parameters 'intl_date_lang = es_ES'; -- to_timestamp select 'TO_TIMESTAMP( , DAY )'; SELECT TO_TIMESTAMP('2011-05-01 DOMINGO 10:11:12', 'yyyy-MM-DD DAY HH:MI:SS'); SELECT TO_TIMESTAMP('2011-05-02 LUNES 10:11:12', 'yyyy-MM-DD DAY HH:MI:SS'); SELECT TO_TIMESTAMP...
<reponame>finneywhat/sales-tracker-java -- -- PostgreSQL database dump -- -- Dumped from database version 9.5.3 -- Dumped by pg_dump version 9.5.3 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_mess...
-- This query needs to insert new data into the "recipes" table. -- -- * Insert into the "recipes" table: -- * title -- -- In this case, you should allow the default values for "created" and "updated" -- to be inserted by NOT including them in your INSERT statement. -- -- It needs to include a single positional p...
CREATE TABLE `project_work_diary_user` ( `project_work_diary_id` INT NOT NULL, `user_id` INT NOT NULL, `hours` INT NULL);
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY ''; DROP DATABASE IF EXISTS employee_tracker_db; CREATE DATABASE employee_tracker_db; USE employee_tracker_db; CREATE TABLE departments( id INT AUTO_INCREMENT NOT NULL, dept_name VARCHAR(30) NOT NULL, PRIMARY KEY (id) ); CREATE TABLE roles( id IN...
<filename>database/ci_apurpafriss_db.sql -- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1 -- Généré le : lun. 29 juil. 2019 à 08:06 -- Version du serveur : 10.1.37-MariaDB -- Version de PHP : 7.3.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSAC...
 /****** Object: StoredProcedure [dbo].[app_PatronBookLists_Insert] Script Date: 01/05/2015 14:43:23 ******/ --Create the Insert Proc CREATE PROCEDURE [dbo].[app_PatronBookLists_Insert] ( @PID INT, @BLBID INT, @BLID INT, @HasReadFlag BIT, @LastModDate DATETIME, @PBLBID INT OUTPUT ) AS BEGIN INSERT INTO Pat...
<gh_stars>1-10 DROP TABLE `filters`;
SELECT * FROM puma_names_2010 WHERE puma_name LIKE 'King County%' AND state_name = 'Washington' -- SELECT COUNT(serialno), puma -- FROM pums_2017 -- WHERE puma BETWEEN '11611' AND '11615' -- GROUP BY puma -- LIMIT 10 -- SELECT * -- FROM pums_2017 -- WHERE serialno = '2013000022153' -- LIMIT
<filename>Print Prime Numbers.sql<gh_stars>1-10 ''' Problem Statement: https://www.hackerrank.com/challenges/print-prime-numbers/problem @Coded by TSG, 2020 ''' /* Enter your query here. Please append a semicolon ";" at the end of the query and enter your query in a single line to avoid error. */ WITH THOUSAND AS (S...
<gh_stars>0 TRUNCATE TABLE KRNS_PARM_T DROP STORAGE / INSERT INTO KRNS_PARM_T (APPL_NMSPC_CD,CONS_CD,NMSPC_CD,OBJ_ID,PARM_DESC_TXT,PARM_DTL_TYP_CD,PARM_NM,PARM_TYP_CD,TXT,VER_NBR) VALUES ('KUALI','A','KR-IDM','2238b58e-8fb9-102c-9461-def224dad9b3','The maximum number of role or group members to display at once on the...
<filename>inst/sql/sql_server/analyses/602.sql<gh_stars>1-10 -- 602 Number of persons by procedure occurrence start month, by procedure_concept_id --HINT DISTRIBUTE_ON_KEY(stratum_1) WITH rawData AS ( select po1.procedure_concept_id as stratum_1, YEAR(procedure_date)*100 + month(procedure_date) as stratum_2,...
<filename>DataBase/db_cro2.sql<gh_stars>0 /* SQLyog Ultimate v12.2.6 (64 bit) MySQL - 5.5.53 : Database - db_cro ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0...
CREATE TABLE {$NAMESPACE}_worker.worker_triggerevent ( id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, triggerID INT UNSIGNED NOT NULL, lastEventEpoch INT UNSIGNED, nextEventEpoch INT UNSIGNED, UNIQUE KEY `key_trigger` (triggerID), KEY `key_next` (nextEventEpoch) ) ENGINE=InnoDB, COLLATE {$COLLATE_TEXT...
<reponame>alod83/versatile-data-kit create index if not exists idx_data_job_execution_job_name_start_time on data_job_execution (job_name ASC, start_time DESC);
-- phpMyAdmin SQL Dump -- version 4.4.9 -- http://www.phpmyadmin.net -- -- Host: localhost:8889 -- Generation Time: Aug 12, 2015 at 08:38 AM -- Server version: 5.5.42 -- PHP Version: 5.6.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACT...
CREATE TEXT SEARCH DICTIONARY english_stem ( TEMPLATE = snowball, Language = english, StopWords = english );
CentOS 7 关闭第一次启动欢迎界面 2018-03-22 12:10:14| 分类: 操作系统 | 标签:案例 操作系统 linux centos 今天被问到一个很有意思的问题,每次安装完系统,无论是CentOS6还是7,都会有个欢迎界面,要求你写一大堆内容,感觉到很烦,于是就找寻不设置的解决方案。 来个图,帮助识别是那个界面哈 CentOS 7 关闭第一次启动欢迎界面 - T_T - T_T的博客 那么好了这个东西是什么呢?这个界面是gnome的初始化界面名叫“gnome-initial-setup”,关于gnome的配置内容都在/etc/xdg/autostart/当中。当你完成这些设置后,...
CREATE TABLE `act_rich_log` ( `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID', `user_id` INT(10) UNSIGNED DEFAULT 0 NOT NULL COMMENT '用户', `money` INT(10) UNSIGNED DEFAULT 0 NOT NULL COMMENT '消费金额', `type` TINYINT(1) NOT NULL DEFAULT 0 COMMENT '1天,2周,3月', `rank` TINYINT(2) NOT NULL DEFAULT 0 COMMEN...
INSERT INTO Types (Type, Kind) VALUES ('TRAIT_GENSHIN_BUILDING_STATUE_OF_THE_SEVEN', 'KIND_TRAIT' ), ('TRAIT_GENSHIN_IMPROVEMENT_ADVENTURERS_GUILD', 'KIND_TRAIT' ), ('BUILDING_STATUE_OF_THE_SEVEN', 'KIND_BUILDING' ), ('IMPROVEMENT_ADVENTURERS_GUILD', 'KIND_IMPROVEMENT' ), ('UNIT_HILICHURL_FIGHTER', ...
CREATE TABLE TBL_SALES( sales_id VARCHAR2(6) PRIMARY KEY, sales_date DATE, product_id VARCHAR2(6) CONSTRAINT fk_from_tblstock REFERENCES tbl_stock(product_id), quantity_sold NUMBER CHECK (quantity_sold >= 0), sales_price_per_unit NUMBER CHECK (sales_price_per_unit >= 0) );
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600794',@CutoffDate = N'2017-09-30',@EPS = N'-0.0653',@EPSDeduct = N'0',@Revenue = N'6.60亿',@RevenueYoy = N'32.91',@RevenueQoq = N'125.34',@Profit = N'-7909.98万',@ProfitYoy = N'-317.82',@ProfiltQoq = N'110.72',@NAVPerUnit = N'1.5993',@ROE = N'-4.01',@CashPerUnit = N'-0.0123',@GrossP...
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost -- Tiempo de generación: 06-05-2019 a las 01:42:42 -- Versión del servidor: 10.1.35-MariaDB -- Versión de PHP: 7.2.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
CREATE VIEW [dbo].[vw_sqlwatch_report_dim_aget_job] with schemabinding AS select [sql_instance], [job_name], [job_create_date], [sqlwatch_job_id], [deleted_when] from dbo.sqlwatch_meta_agent_job
-- MariaDB dump 10.17 Distrib 10.4.8-MariaDB, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: app_erp -- ------------------------------------------------------ -- Server version 10.4.8-MariaDB-1:10.4.8+maria~bionic /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CH...
-- List the states in descending order by what percentage of their house seats had a different -- member from the 115th congress to the 116th, and also show how many seats that state has in total. WITH ChangeCounts AS ( SELECT a.state, COUNT(a.state) AS counts FROM ( SELECT * FROM Role WHER...
<filename>prisma/migrations/20210202010649_initialdb/migration.sql -- CreateTable CREATE TABLE `User` ( `id` INT NOT NULL AUTO_INCREMENT, `name` VARCHAR(191) NOT NULL, `laslName` VARCHAR(191) NOT NULL, `email` VARCHAR(191) NOT NULL, `password` VARCHAR(191) NOT NULL, `state` BOOLEAN NOT NULL DEFA...